- Joined
- Nov 15, 2013
- Messages
- 590
- Reaction score
- 3
how can i change the /rob to /stats?
i want it to /stats the nearest person beside me
original code
im starting off with something easy like this
this is my code but it doesnt work
what am i doing wrong?
i want it to /stats the nearest person beside me
original code
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "Rob"
:ROB_7
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 50
jf @ROB_7
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D: actor 1@ defined
jf @ROB_81
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
say "/rob %d" 2@
:ROB_81
wait 2000
goto @ROB_7
{$CLEO .cs}
//-------------MAIN---------------
thread "Rob"
:ROB_7
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 50
jf @ROB_7
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D: actor 1@ defined
jf @ROB_81
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
say "/rob %d" 2@
:ROB_81
wait 2000
goto @ROB_7
im starting off with something easy like this
this is my code but it doesnt work
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "Stats"
:STATS_7
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 50
jf @STATS_7
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D: actor 1@ defined
jf @ROB_81
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
say "/stats %d" 2@
:STATS_81
wait 2000
goto @STATS_7
{$CLEO .cs}
//-------------MAIN---------------
thread "Stats"
:STATS_7
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 50
jf @STATS_7
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D: actor 1@ defined
jf @ROB_81
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
say "/stats %d" 2@
:STATS_81
wait 2000
goto @STATS_7
what am i doing wrong?