Superjump no work
#1

if(newkeys & KEY_JUMP)
{
new Float:SuperJump[3];
GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
return 1;
}

It's doesn't work for shit, anyone?
Reply
#2

It works fine...
Reply
#3

It's working when I am using this as a command not a key.

pawn Код:
CMD:jump( playerid, params[ ] )
{
    new Float:Superjump[3];
    GetPlayerVelocity(playerid, Superjump[0], Superjump[1], Superjump[2]);
    SetPlayerVelocity(playerid, Superjump[0], Superjump[1], Superjump[2]+5);
    return ( 1 );
}
Even when I do something like this,

pawn Код:
if ( newkeys & KEY_JUMP )
{
    SendClientMessage(playerid, -1, "FFS Work");
}
Problem seems to be in the key
Reply
#4

Tested it and works fine...

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_JUMP)
    {
        new Float:SuperJump[3];
        GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
        SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
        return 1;
    }
    return 1;
}
Reply
#5

Actually you didn't help me at all, but as you have tried you got my +rep. You will realize when I get over 50 posts I guess

Keep trying to help others m8.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)