10.12.2010, 23:00
untested
it basically check all the conditions that has to be for a player to shot (at least when he is on foot).
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if (!IsPlayerInAnyVehicle(playerid))
{
new wep = GetPlayerWeapon(playerid)
if (wep > 0 || wep < 50)
{
return PlayerShot;
}
}
}
return 1;
}