CLEO Help [CLEO] Automatic [/puthelmet] on bikes

CLEO related
Status
Not open for further replies.

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
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: 2@ = get_int_from_ini_file "cleo\ServerCMD.ini" section "AntiTicket" key "state"
if 2@ == 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
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
You can check specific models

Code:
03C0: 0@ = actor $PLAYER_ACTOR car
IF OR
            0137:   car 0@ model == #FREEWAY
            0137:   car 0@ model == #NRG500
            0137:   car 0@ model == #SANCHEZ
            0137:   car 0@ model == #FCR900
THEN
 
Status
Not open for further replies.
Top