02.02.2018, 13:19
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38)
{
if(InDM[playerid] == false && DMType[playerid] != 3)
{
new string[280];
foreach(new i : Player)
{
format(string, sizeof(string), "* %s (ID: %d) has a minigun outside the minigun game!", GetName(playerid), playerid);
new irc[280];
format(irc, sizeof(irc), "1,3* Anti-Cheat Alert: %s (ID: %d) has a minigun outside the minigun game", GetName(playerid), playerid);
IRC_Say(groupID, IRC_CHANNEL, irc);
IRC_Say(groupID, IRC_aCHANNEL, irc);
if(pData[i][Admin] >= 1)
{
SendClientMessage(i, COLOR_RED, string);
}
}
}
}
return 1;
}