player will be jump after alt+tab / set player
#1

hi, I'm just learning and enters KEY STATE

that I wanted to ask, why every player alt + tab / when I change it into a jump, he will jump, though not in the press KEY

PHP код:
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
PRESSED(KEY_WALK))
    {
        if(
pendingjump[playerid] > 0) return SCM(playerid, -1,"you must wait 20 second");
        if(
icanjump[playerid] == true)
        {
            new 
Float:vxFloat:vyFloat:vzstr[254];
            
GetPlayerVelocity(playerid,vx,vy,vz);
            
SetPlayerVelocity(playerid,vx,vy*1.0,vz+0.81.2);
            
SCM(playerid, -1"ALT Press! you get a jump");
            
pendingjump[playerid] = 20;
        }
    }
    return 
1;

Reply


Messages In This Thread
[NOT FIXED] player will be jump after alt+tab / set player - by kloning1 - 10.02.2017, 15:40
Re: player will be jump after alt+tab / set player - by X337 - 10.02.2017, 15:46
Re: player will be jump after alt+tab / set player - by kloning1 - 10.02.2017, 16:07
Re: player will be jump after alt+tab / set player - by Macronix - 10.02.2017, 16:10
Re: player will be jump after alt+tab / set player - by kloning1 - 10.02.2017, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)