Block KEY_FIRE
#1

Hello,

I want to ask, if there is a possibility to black KEY_FIRE. We tried some ways but it doesn't work. We need to block it, because we want to block the water of a fire truck. I hope, anyone can help.

Regards, ThomasTailor93
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)