20.06.2010, 11:24
I've made a command with OnPlayerKeyStateChange.
Off nitro.
But theres a big problem, When the player presses the button on a bike they crash.
Is there away to block some vehicle ids?
Heres my code
}
Off nitro.
But theres a big problem, When the player presses the button on a bike they crash.

Is there away to block some vehicle ids?
Heres my code
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys & KEY_FIRE)
{
if(IsPlayerInAnyVehicle(playerid))
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
return 1;
}

