10.07.2012, 00:07
(
Последний раз редактировалось godoy32; 17.07.2012 в 16:00.
)
Te recomiendo cambiarlo por un timmer.
pawn Код:
new Timer[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Timer[playerid]=SetTimerEx("CheckFly",2000,"d",playerid);
}
forward CehckFly(playerid);
public CehckFly(playerid)
{
new i=0; i<MAX_PLAYERS; i++;
new Float:animX, Float:animY, Float:animZ;
new anim = GetPlayerAnimationIndex(playerid);
GetPlayerPos(playerid, animX, animY, animZ);
if((anim >= 1538) && (anim <= 1542) && animZ > 5)
{
if(Adviced[playerid] == 0)
{
format(string, 128, "* %s (ID:%d) esta usando Fly Hack.",pName(i), i);
ABroadCast(RojoIntenso, string, 1);
Adviced[playerid] = 1;
}
}
}
public OnPlayerDisconnect(playerid)
{
KillTimer(Timer[playerid]);
}

