Ко всем new
Код: Выделить всё
new Weapons[MAX_PLAYERS][47];
Ко всем stock
Код: Выделить всё
stock GiveWeapon(playerid, weaponid, ammo)
{
Weapons[playerid][weaponid] = 1;
GivePlayerWeapon(playerid, weaponid, ammo);
return true;
}
В OnPlayerConnect:
Код: Выделить всё
for(new i=0;i<47;i++) Weapons[playerid][i]=0;//Обнуление
В OnPlayerUpdate или же в одно секундный таймер вставляем:
Код: Выделить всё
new weap = GetPlayerWeapon(playerid);
if(weap != 0 && !Weapons[playerid][weap] && weap != 40)
{
SendClientMessage(playerid, -1, "Вы были кикнуты под подозрением в читерстве");
Kick(playerid);
}
Все GivePlayerWeapon меняем на GiveWeapon