Autonos problem
#2

Try:
pawn Код:
new AutoNOS[MAX_PLAYERS];//at the top

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && AutoNOS[playerid] == 1 && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    return 1;
}

dcmd_nos(playerid,params[])
{
    #pragma unused params
    if(AutoNOS[playerid] == 1)
    {
        SendClientMessage(playerid, 0x924161FF, "[ ! ] Automatic nitro deactivated.");
        AutoNOS[playerid] = 0;
    }
    else
    {
        SendClientMessage(playerid, 0x924161FF, "[ ! ] Automatic nitro activated!");
        AutoNOS[playerid] = 1;
    }
    return 1;
}
Reply


Messages In This Thread
Autonos problem - by mave_man - 13.01.2012, 11:34
Re: Autonos problem - by Stigg - 13.01.2012, 12:13
Re: Autonos problem - by mave_man - 14.01.2012, 14:21

Forum Jump:


Users browsing this thread: 2 Guest(s)