CLEO Help Script not working

CLEO related
Status
Not open for further replies.

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
// This file was decompiled using SASCM.INI published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013

{$VERSION 3.1.0000}
{$CLEO .cs}

const
RED = 0xFFFF0000
ORANGE = 0xFFA500
MAROON = 0xFFBF1111
end

//-------------MAIN---------------
thread "Taze"

:TAZE_8
wait 0
if and
056D:  actor $PLAYER_ACTOR defined
key_down 49
else_jump @TAZE_8
:FUCKTAG
wait 0
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D:  actor 1@ defined
else_jump @TAZE_127

2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)

0B37: samp 3@ = get_player_color 2@
if or
    3@ == RED
    3@ == ORANGE
    3@ == MAROON
004D: jump_if_false @FUCKTAG

0AF9: samp say_msg "/taze %d" 2@ // Not working. 2@ returns nothing
wait 1050
0AF9: samp say_msg "/cuff %d" 2@  // Not working. 2@ returns nothing
wait 1050
0AF9: samp say_msg "/arrest %d" 2@  // Not working. 2@ returns nothing
jump @TAZE_8
else_jump @fucktag

:TAZE_127
wait 0
jump @TAZE_8
 

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
i think the colors hex is wrong , i don't know how to get the correct colors , if you know it post it and define the name of the hex like


0x34534 //red
0x324545 //green 

...etc
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
BlackHat link said:
i think the colors hex is wrong , i don't know how to get the correct colors , if you know it post it and define the name of the hex like


0x34534 //red
0x324545 //green 

...etc

Please do not worry about anything else. It works, just not what I said on the previous post that you said you were going to fix.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Your color codes could be wrong like i said in the second post.
ORANGE = 0xFFA500 //needs to be ARGB

Use the cleo attached in game /nickCol <ID> to get the correct nick colors from players.
Then use the color codes in your script.
 

Attachments

  • col.cs
    95 bytes · Views: 34
Status
Not open for further replies.
Top