Clear Anim[Help]
#1

i cant kick [ RIGHT CLICK + ENTER]

PHP код:
if ((newkeys KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
                {
                   
TogglePlayerControllable(playerid0);
                   
TogglePlayerControllable(playerid1);
                   
ClearAnimations(playerid);
                   return 
1;
                } 
if i fall and press right click it like stops the movemen try it youl understand better!!!
Reply
#2

I didn't understand, what's the idea?
Reply
#3

PHP код:
if ((newkeys KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT)) 
                { 
                  if 
TogglePlayerControllable(playerid0); 
                 {
                   
TogglePlayerControllable(playerid1); 
                   
ClearAnimations(playerid); 
                   return 
1
                } 
I dont know it works or not.
Reply
#4

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
I didn't understand, what's the idea?
test my posted cmd and right click and try to fight..
Reply
#5

i get errors a bracket isnt good..please test them youl know what i mean!
Reply
#6

Hmm, use other key, the problem is "ClearAnimations"
Reply
#7

Try this
pawn Код:
if ((newkeys & KEY_AIM) && (GetPlayerState(playerid)== PLAYER_STATE_ONFOOT))
{
    new Float:Velocity[3];
    GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
    if(Velocity[2] == 0)
    {
        TogglePlayerControllable(playerid, 0);
        TogglePlayerControllable(playerid, 1);
        ClearAnimations(playerid);
        return 1;
    }
}
Reply
#8

no work..i still cant move i sow on a server he pressed right click and could move by clicking right click try to fight you now the Right click +enter fight...i cant fight..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)