Skip to content

Instantly share code, notes, and snippets.

Avatar

Valdir da Costa Júnior JuniorDjjr

View GitHub Profile
View No Dealer Help Text (Junior_Djjr).sc
/*
CLEO script for GTA:SA wrote in GTA3script language (0.2.0)
Description: Removes dealer help box by hacking his external script changing 88FE: opcode ("NOT IS_HELP_MESSAGE_BEING_DISPLAYED")
into 0485: ("IS_PC_VERSION") (also called as "return_true" by modders)
*/
{
NOP
View Food Eating Fix (Junior_Djjr).sc
/*
You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
TODO: Add also for hot dogs and vending machines?
*/
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT hObject ryder
LVAR_INT iModelBurger iModelChicken iModelPizza iModelDonut iModelHotDog
LVAR_FLOAT fProgress
View Cop Outfit (Junior_Djjr).sc
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT i j playerId mode ignoredLastFrame[2] noWantedLastFrame maxWantedBackup playerWithUniform[2] numPlayersUsing dontEnableFor2players maxWantedLevelBeforeEnterInterior
IF NOT READ_INT_FROM_INI_FILE "CLEO/Cop Outfit.ini" "Settings" "Mode" (mode)
OR mode < 1
OR mode > 3
TERMINATE_THIS_CUSTOM_SCRIPT
ENDIF
View Fix MALE01 (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT veh char
LVAR_INT veh_model veh_class cped pedtype createdby
LVAR_FLOAT x y z
GET_PLAYER_CHAR 0 scplayer
View Compressor (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer bUsingCompressor hCompressorObject iLanguage iKey bInfos iModel
LVAR_FLOAT x y z x2 y2 z2
CONST_INT LANG_PT 1
CONST_INT LANG_EN 2
GET_PLAYER_CHAR 0 scplayer
IF READ_INT_FROM_INI_FILE "cleo\compressor.ini" "Settings" "lang" iLanguage
View MapModMover.cpp
/*
Map Mod Mover
http://www.mixmods.com.br/2017/05/programa-map-mod-mover-mudar-posicao-mapas.html
*/
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <Windows.h>
View Ear Ringing (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT hAudiostream bIsAudioPlaying
LVAR_FLOAT fLastExplosion_X fLastExplosion_Y fLastExplosion_Z
LVAR_FLOAT fLast_fLastExplosion_X fLast_fLastExplosion_Y fLast_fLastExplosion_Z
LVAR_FLOAT fPlayer_X fPlayer_Y fPlayer_Z
LVAR_FLOAT fDistance fMinDistance fDivDistance fVolume fNewVolume fTempVolume fSetVolume fIniVolume
LVAR_FLOAT fSfxVolume fRadioVolume fDefaultSfxVolume fDefaultRadioVolume
View Insult (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT char n pedtype
GET_PLAYER_CHAR 0 (scplayer)
main_loop:
WAIT 0
View Microphone Talk (Junior_Djjr).sc
SCRIPT_START
{
LVAR_INT scplayer hPed
LVAR_INT pBASS pBASS_RecordStart pBASS_ChannelGetLevel pBASS_RecordInit pBASS_SetConfig pBASS_RecordFree pBASS_ErrorGetCode
LVAR_INT hRecord
LVAR_INT iLevel
LVAR_INT iResult iTemp bIsFirstTime
LVAR_INT iMinLevel iMouthUpdate bEnabled bDebugMode iLanguage
GET_PLAYER_CHAR 0 (scplayer)
View Rain Chance (Junior_Djjr).sc
// by Junior_Djjr - MixMods.com.br
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT scplayer
LVAR_INT iChance iChanceLight iCurrentWeatherID iUpcomingWeatherID iDay iLastDay iMonth iLastMonth iLightRainTimeLimit i j
LVAR_FLOAT fLightRainIntensity fCurRain
GET_PLAYER_CHAR 0 (scplayer)
You can’t perform that action at this time.