CLEO Help color players

CLEO related
Status
Not open for further replies.

xAyoubx

Member
Joined
Apr 9, 2016
Messages
9
Reaction score
0
i want to compare between 2 colors for example 
0B37: samp 2@ = get_player_color 1@ 
0B37: samp 4@ = get_player_color $PLAYER_ACTOR
if 2@ == 4@
....
end
 but looks dont work thx in advance for your help.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
0B37 works with the samp id.

0B2B: samp 4@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B37: samp 4@ = get_player_color 4@
 

xAyoubx

Member
Joined
Apr 9, 2016
Messages
9
Reaction score
0
But about compare between 2 colors i write it simple :
0B37: samp 2@ = get_player_color 1@
0B2B: samp 4@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B37: samp 4@ = get_player_color 4@

if 2@ == 4@
.....
end

problem in condition any help ?
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
52
Location
LongForgotten <-> 0x32789
Just add
[color]var
2@ : Integer
4@ : Integer
end[/code]
At top of script or at function before the if check
I was able to implement anti tk system in my aim codenz and it worked also if possible try to add model detection its not that hard


Sorry my bad for the [color] im on mobile
 
Status
Not open for further replies.
Top