[CLEO] Automatic [/puthelmet] on bikes

Status
Not open for further replies.

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
61
Likes
1
Points
8
#1
Hi! I've tried to make a script in which when I enter a vehicle of type "Bike" it types /puthelmet automatic BUT if I go from a NRG-500 to a normal Bike, it says an error, as i'd be in a car. Anyone knows how to improve this script? Thanks

0AF0: [email protected] = get_int_from_ini_file "cleo\ServerCMD.ini" section "AntiTicket" key "state"
if [email protected] == 2
then
if 047A: actor $PLAYER_ACTOR driving_bike
then
say "/puthelmet"
chatmsg "{e3336d}[AntiTicket]:{00ff00} Helmet has been put on!" -1
repeat
wait 0
until 847A: not actor $PLAYER_ACTOR driving_bike
say "/removehelmet"
chatmsg "{e3336d}[AntiTicket]:{ff0000} Helmet has been removed!" -1
end
end
 
Status
Not open for further replies.
Top