25.05.2009, 18:00
Errr, not sure what's going on there but try this:
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
new tempkeys = newkeys-oldkeys;
if(tempkeys == KEY_FIRE)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xFF0000AA, "Nitro is not allowed");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}