Detect CJ Run?
#6

pawn Код:
//CMDX
//under public OnPlayerUpdate(playerid)
if(GetPlayerAnimationIndex(playerid))
{
     new animlib[32],animname[32],acstring[128],acname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, acname, sizeof(acname));
     GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
     if(strcmp(animlib, "PED", true) == 0)
     {
          if(strcmp(animname, "RUN_PLAYER", true) == 0)
          {
               format(acxstring, 128, "[WARNING]: %s[%d] Banned by CMDX-AC, Reason: CJ Run", acname, playerid);
               SendClientMessageToAll(0xFFFFFFFF, acstring);
               BanEx(playerid, "CJ Run");
          }
     }
     return 1;
}
Reply


Messages In This Thread
Detect CJ Run? - by Antonio [G-RP] - 29.03.2011, 02:53
Re: Detect CJ Run? - by ihatetn931 - 29.03.2011, 03:11
Re: Detect CJ Run? - by -Rebel Son- - 29.03.2011, 03:45
Re: Detect CJ Run? - by JamesC - 29.03.2011, 03:51
Re: Detect CJ Run? - by Antonio [G-RP] - 29.03.2011, 03:58
Re: Detect CJ Run? - by iCMDX - 29.03.2011, 04:07
Re: Detect CJ Run? - by Antonio [G-RP] - 29.03.2011, 04:23
Re: Detect CJ Run? - by antonio112 - 29.03.2011, 07:12
Re: Detect CJ Run? - by Antonio [G-RP] - 29.03.2011, 08:43
Re: Detect CJ Run? - by antonio112 - 29.03.2011, 08:47
Re: Detect CJ Run? - by X3nZ - 29.03.2011, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)