17.04.2013, 17:39
(
Last edited by James_Braga; 17/04/2013 at 07:54 PM.
)
PHP Code:
if(timestop[playerid] == 0)
{
for(new i=0;i<12;i++)
{
new qwq[2];
GetPlayerWeaponData(playerid,i,qwq[0],qwq[1]);
if(qwq[1] != 0 && IsColdWeapon(qwq[0])) qwq[1] = 1;
if(qwq[1]>Ammo[playerid][i])
{
if(GetWeapon != 0 || GetAmmo != 0 || GetWeapon != 40)
{
ResetPlayerWeaponss(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED,"Текст" );
Kick(playerid);
}
}
else Ammo[playerid][i] = qwq[1];
}
}
else timestop[playerid] --;
в onplayerstatechange()
timestop[playerid] = 3;
в ResetPlayerWeaponss в начало
timestop[playerid] = 3;
Givegun в начало
timestop[playerid] = 3;