25.03.2015, 12:45
Is there a way to prevent shooting out of cars whether the player is the driver or not?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE &&
IsPlayerInAnyVehicle(playerid) &&
GetPlayerWeapon(playerid) != 0)
SetPlayerArmedWeapon(playerid, 0);
return 1;
}