Block KEY_FIRE
#2

I believe this will work:

pawn Код:
public OnPlayerUpdate(playerid)
{
    new model == GetVehicleModel(GetPlayerVehicleID(playerid));
    new keys, leftright, updown;
    GetPlayerKeys(playerid, keys, leftright, updown);
    if(model == FIRETRUCK_MODEL && keys & KEY_FIRE) return 0; // Prevent updates
    return 1;
}
But the player will be de-synced while holding KEY_FIRE.
Reply


Messages In This Thread
Block KEY_FIRE - by ThomasTailor93 - 27.05.2012, 18:37
Re: Block KEY_FIRE - by MP2 - 27.05.2012, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)