14.08.2010, 12:20
pawn Код:
if(IsPlayerInArea(playerid, ammu_x, ammu_y, ammu_z);
{
if(newkeys == KEY_FIRE)
{
SetPVarInt(playerid, "ShootingAmmu", GetPVarInt(playerid, "ShootingAmmu")+1);
}
if(GetPVarInt(playerid, "ShootingAmmu") == 3)
{
// jail command
SetPVarInt(playerid, "ShootingAmmu", 0); // 0 resets the pvar
}
}