unlimited nos with command
#9

This is the better system and I used it in my server:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
       
        if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
        else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    }
    return 1;
}
Reply


Messages In This Thread
unlimited nos with command - by sirvanec - 19.02.2015, 13:18
Re: unlimited nos with command - by CalvinC - 19.02.2015, 13:30
Re: unlimited nos with command - by sirvanec - 19.02.2015, 13:40
Re: unlimited nos with command - by CalvinC - 19.02.2015, 13:48
Re: unlimited nos with command - by sirvanec - 19.02.2015, 23:13
Re: unlimited nos with command - by JR_Junior - 19.02.2015, 23:26
Re: unlimited nos with command - by JR_Junior - 19.02.2015, 23:41
Re: unlimited nos with command - by Abagail - 19.02.2015, 23:43
Re: unlimited nos with command - by JR_Junior - 19.02.2015, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)