4changesLeft
Well-known member
- Joined
- Apr 10, 2015
- Messages
- 365
- Reaction score
- 4
Hey guys! I need help with this script. What I'm trying to do is, while I'm in my car, when I type the command "/loading id" I send the targeted player to loading screen, I just don't know what's wrong, because it keeps crashing after I type the command.. Sorry if it's something obvious or stupid, I'm still a begginer..
Thanks in advance!
Thanks in advance!
Code:
{$CLEO .cs}
0000: NOP
0B34: samp register_client_command "loading" to_label @MAIN
31@ = 0
:MAIN
wait 0
if
31@ = 1
else_jump @MAIN
wait 100
Actor.StorePos($PLAYER_ACTOR, 10@, 21@, 32@)
036A: put_actor $PLAYER_ACTOR in_car 6@
wait 100
Car.PutAt(0@, -1.792915E38, -1.25, 5019.66)
Actor.PutAt($PLAYER_ACTOR, -1.792915E38, -1.25, 5019.66)
wait 400
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 10@ 21@ 32@
31@ = 0
SAMP.CmdRet
jump @MAIN