CLEO Help Help someone who creates scripts

CLEO related
Status
Not open for further replies.

SnowSnow

Member
Joined
Jul 23, 2018
Messages
5
Reaction score
0
Location
Belgium
Hello I want to change that instead of "armor" is "weapons" Somebody could help me? I am learning about this, thank you very much and thank you for your time



thread "ARMOUR"
0662: printstring
0662: printstring

:ARMOUR_72
wait 0
if
0ADC: test_cheat "xxxx"
else_jump @ARMOUR_72
Actor.AddArmour($PLAYER_ACTOR, 99)
0ACD: show_text_highpriority time 7500
wait 0
jump @ARMOUR_72

:ARMOUR_167
wait 0
if
0ADC: test_cheat
else_jump @ARMOUR_167
Actor.AddArmour($PLAYER_ACTOR, 100)
jump @ARMOUR_167
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
You need to load the model, then get the weapon id from: https://wiki.multitheftauto.com/wiki/Weapons
and use opcode 01B2: to spawn it.
Code:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
    IF
    0ADC: test_cheat "weapon"
    THEN
        0247: load_model #DESERT_EAGLE
        01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 1337 // Load the weapon model before using this
        0AD1: show_formatted_text_highpriority "~r~Weapon:~w~ you were given a DESERT_EAGLE!" time 1000
    END
END
 
Status
Not open for further replies.
Top