I want to run this script like this. To start time to chat write "Player out from the vehicle" and stop when he writes that "Player entered the vehicle"
Code:
:autoaccept
SAMP.IsCommandTyped(0@)
IF 8AD4: NOT 1@ SCAN 0@ FORMAT "%D" 2@
THEN JUMP @ERROR_autoacc
END
IF 2@ == 1
THEN
CHATMSG "{FF0000}= Auto accept ON" -1 // Player out from the vehicle
print "Auto accept On" 1000
23@ = 1
ELSE
IF 2@ == 0
THEN
CHATMSG "{000000}= Auto accept OFF" -1 // Player entered the vehicle
print "Auto accept Off" 1000
23@ = 0
END
END
SAMP.CmdRet
:ERROR_autoacc
SAMP.CmdRet