_Cubik_
Ученик
PHP:
public ACSCheckBudWeapons()
{
new wid, amm;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) || PlayerLogged[i] == 0) continue;
if(pWeaponDelay[i] > 0)
{
pWeaponDelay[i]--;
continue;
}
for(new s = 1; s < 13; s++)
{
GetPlayerWeaponData(i, s, wid, amm);
if(amm == -1 && IsColdWeapon(wid)) {amm = 1;}
if(pWeapons[i][wid] < amm)
{
if(!IsGreenWeapon(wid))
{
if(PlayerInfo[i][pAdmin] == 0)
{
//ResetPlayerWeapons(i);
new string[64];
format(string, 64, "[A] » %s[%i] Использует gun-cheat.!", PlayerInfo[i][pSendername], i);
SendAdminMessage(0xff4f00ff, string);
continue;
}
}
}
if(amm >= 0)
{
pWeapons[i][wid] = amm;
}
}
}
}
