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;
}
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys & KEY_FIRE)
{
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;
}
Omg? Are you post hunting or something? i only see you add bullshit everywhere.
Why the heck would he need a timer? This isn't the first post where you are doing this. |
it's a f7712ng OnPlayerUpdate callback, what should u do?
I'm scripting with Pawn from 2010 and I made a lot of codes, I cant even count and I know what the hell I'm talking. Why none of my scripts have a bug or errors/warnings? cuz I know a sh1p(t) |
Omg? Are you post hunting or something? i only see you add bullshit everywhere.
Why the heck would he need a timer? This isn't the first post where you are doing this. ontopic: I think the problem is with onplayerupdate, i have had that spamming too and couldnt fix it. You can check at onplayerkeystatechange, so it detects if the player uses the weapon. PHP код:
|
it's a f7712ng OnPlayerUpdate callback, what should u do?
I'm scripting with Pawn from 2010 and I made a lot of codes, I cant even count and I know what the hell I'm talking. Why none of my scripts have a bug or errors/warnings? cuz I know a sh1p(t) |