KamikazeSripterul
Well-known member
- Joined
- Jun 30, 2019
- Messages
- 353
- Reaction score
- 23
So I've been trying to get the car's speed in order to make a limiter, if that makes sense, although it doesn't work and i dont really find the mistake.. Can someone help please?
	
	
	
		
			
			
		Code:
	
	0AF0: 5@ = get_int_from_ini_file "cleo\ServerCMD.ini" section "AntiTicket" key "states"
    0AF0: 7@ = get_int_from_ini_file "cleo\ServerCMD.ini" section "AntiTicket" key "state"
    if 7@ == 2
           then
           if and
           5@ == 1
           00DF:   actor $PLAYER_ACTOR driving
           then
                if 00D9: 0@ = actor $PLAYER_ACTOR car
                then
                    02E3: 15@ = car 0@ speed
                    if 15@ > 100.0
                    then
                        chatmsg "100" -1
                    else
                        if and
                        5@ == 2
                        00DF:   actor $PLAYER_ACTOR driving
                        then
                            if 00D9: 0@ = actor $PLAYER_ACTOR car
                            then
                                02E3: 15@ = car 0@ speed
                                if 15@ > 150.0
                                then
                                    chatmsg "150" -1
                                else
                                    if and
                                    5@ == 0
                                    00DF:   actor $PLAYER_ACTOR driving
                                    then
                                        chatmsg "{e3336d}[AntiTicket]: {ff0000}(!) Warning (!)" -1
                                        chatmsg "{e3336d}[AntiTicket]: {ff0000}Speed limit has not been set." -1
                                        wait 1000
                                        chatmsg "{e3336d}[AntiTicket]: {a1a1a1}Use /speed <1 - 2> to set the speed limit." -1
                                        chatmsg "{e3336d}[AntiTicket]: {a1a1a1}1 = 100km/h || 2 = 150km/h" -1
                                    end
                                end
                            end
                        end
                    end
                end
            end
        end 
				 
 
		 
 
		 
 
		