28.01.2015, 12:50
Hello i have this code, but i have a problem; when some player "click map" sends me alerts of everyone.
And i've seen in other server that, when a player click map the point don't appears. How can i do that?
PHP код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
foreach (Player, i)
if(PlayerInfo[playerid][pAdmin] >= 1)
{
return 1;
}
else
{
new string[128];
new sendername[MAX_PLAYERS];
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "AdmWarning:[%d][%s]Posible TP, Revisalo rapido!",i, sendername);
SendSpeedMessage(COLOR_YELLOW, string);
SendDebugMessage("AntiCheat");
}
return 1;
}