How To Start Engine With Key N
#1

How To Start Engine With Key N
This Is Command:
if(strcmp(cmd, "/engine", true)
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

that should help you, there are some examples further down the page.
Reply
#3

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys) {
    if((
newkeys KEY_NO) && !(oldkeys KEY_NO)) {
        if (
IsPlayerInAnyVehicle(playerid)) {
            new 
enginelightsalarmdoorsbonnetbootobjective;
            
GetVehicleParamsEx(GetPlayerVehicleID(playerid), enginelightsalarmdoorsbonnetbootobjective);
            
SetVehicleParamsEx(GetPlayerVehicleID(playerid), !enginelightsalarmdoorsbonnetbootobjective);
        }
    }
    return 
1;

Next time, don't post something like this. You made a request, this should've been a reply to; https://sampforum.blast.hk/showthread.php?tid=447813
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)