Detect CJ Run?
#1

Is there a way to detect CJ run?
Reply
#2

I don't think it's possible.

You could possibly try
pawn Код:
if(UsePlayerPedAnims())
No gurantees it will work tho
Reply
#3

Detect if hes spessing the run key.
Reply
#4

Quote:
Originally Posted by ihatetn931
Посмотреть сообщение
I don't think it's possible.

You could possibly try
pawn Код:
if(UsePlayerPedAnims())
No gurantees it will work tho


@OP: You could try using GetPlayerAnimationIndex like Limex did to detect swimming.
Reply
#5

Quote:
Originally Posted by JamesC
Посмотреть сообщение


@OP: You could try using GetPlayerAnimationIndex like Limex did to detect swimming.
Thanks for the tips, I'll give it a look.
Reply
#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
#7

Well that's a tad stupid, I just found it and wrote the code myself to find this. Thanks iCMDX
Reply
#8

Would you mind posting it here? Someone else could use it (like me). Thanks !
Reply
#9

Look 2 posts above...
Reply
#10

Oh, ok ... thanks. I tought you found another solution, didn`t really understood your post earlier but I got it now.
Reply
#11

Put: UsePlayerPedAnims()

Under: OnGameModeInit - It will enable the CJ run style.

Edit: Nevermind, I thought you wanted to use the CJ running style. My bad.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)