14.03.2017, 14:20
I don't know why this is happening.
androids have the ability to super jump,but for some reason,They super jump when I press ANY KEY! EVEN AIM!
Here's a video on this bug : https://www.youtube.com/watch?v=rbPj...ature=*********
They're supposed to jump from LALT ( WALK KEY).
Please help me,I do not understand or seem to see where I've done this mistake.
androids have the ability to super jump,but for some reason,They super jump when I press ANY KEY! EVEN AIM!
Here's a video on this bug : https://www.youtube.com/watch?v=rbPj...ature=*********
They're supposed to jump from LALT ( WALK KEY).
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerTeam(playerid) == 2)
{
if(PRESSED(KEY_WALK))
{
new Float:x,Float:y,Float:z;
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
SetPlayerVelocity(playerid,Float:x,Float:y*1.0,Float:z+0.8* 1.2);
}