Compiling a samp mod

erichoward

Member
Joined
Dec 9, 2019
Messages
15
Reaction score
0
Location
egypt
Can anybody help me to find any problems in this script? It gives me an unknown directive message.
If you found any problems , please fix it.
Code:
{$CLEO .cs}

0000: NOP

:Start
wait 100
SAMP.Available
else_jump @Start
0AF8: samp add_message_to_chat "{FFFFFF}Robber roleplay cleo by{FFFF00} Eric{FFFF00}"

:hinfo
wait 50
if
0AB0:   key_down 88
jf @hinfo
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor
jf @hinfo
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
wait 500
0AF9: samp say_msg "/me aims their Desert Eagle at %s's head." 2@
0AF9: samp say_msg "This is a fucking robbery, give me $5,000 now or you will be dead."
wait 200
0AF9: samp say_msg "You have to give me in one minute."
wait 200
0AF9: samp say_msg "If you don't have any money, then give me something worth $5,000."
wait 1000
jump @hinfo
 

erichoward

Member
Joined
Dec 9, 2019
Messages
15
Reaction score
0
Location
egypt
I fixed it, but I want to put the name of the player I aimed at and put it instead of %s
 
Top