CLEO Help Need some help

CLEO related
Status
Not open for further replies.

Rossi

Member
Joined
May 30, 2014
Messages
12
Reaction score
0
Well i'm trying to make a weapon spawner thing (Without GUI for now), i currently have two weapons, but it works only for the deagle, when i try to spawn the second weapon nothing happens, this is the current code.
Code:
{$CLEO .cs}

thread 'WPN'

:WPN_01

wait 100
if
0ADC:   test_cheat "DEAGLE"
else_jump @WPN_01
Model.Load(24)
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR,24,75)
0ACD: show_text_highpriority "~w~ Given a ~r~ DEAGLE ~w~ and ~y~75 ~w~ammo." time 1337  
jump @WPN_01

:WPN_02

wait 100
if
0ADC:   test_cheat "SAWN"
else_jump @WPN_02
Model.Load(26)
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR,26,80)
0ACD: show_text_highpriority "~w~ Given a ~r~ SAWN-OFF ~w~ and ~y~ 80 ~w~ ammo." time 1337
jump @WPN_02
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Try with this:

Code:
{$CLEO .cs}

thread 'WPN'

:WPN_01
wait 100
if
0ADC:   test_cheat "DEAGLE"
else_jump @WPN_02
Model.Load(24)
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR,24,75)
0ACD: show_text_highpriority "~w~ Given a ~r~ DEAGLE ~w~ and ~y~75 ~w~ammo." time 1337  
jump @WPN_01

:WPN_02
wait 100
if
0ADC:   test_cheat "SAWN"
else_jump @WPN_01
Model.Load(26)
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR,26,80)
0ACD: show_text_highpriority "~w~ Given a ~r~ SAWN-OFF ~w~ and ~y~ 80 ~w~ ammo." time 1337
jump @WPN_02
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
Rossi link said:
Well this works, but when i try it for more weapons, nothing happens

Repeat the code and change the ids of the weapons dont just change the test cheat hahahaha
 

Rossi

Member
Joined
May 30, 2014
Messages
12
Reaction score
0
It doesn't work hahahaha
i already tried that hahahaha
you are useless hahaha
so stop wasting my time hahahaha
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
Rossi link said:
It doesn't work hahahaha
i already tried that hahahaha
you are useless hahaha
so stop wasting my time hahahaha
u mad , bro ?
Just making it in a loop , like this
Code:
:FIRST
wait 0 
if
bla
jf @FIRST
bla
jump @SECOND

:SECOND
wait 0
if
bla
jf @SECOND
bla
jump @FIRST
By this u have to activate FIRST first , then u can activate the SECOND one
 
Status
Not open for further replies.
Top