Enable/Disable megajump
#1

Hi all. I've created a megajump command. But I don't know how to enable or disable it. Like if someone type /mjump, he will enable/disable megajump.
Here's the code

pawn Код:
OnPlayerKeyStateChange

    if(PRESSED(KEY_JUMP))
    {
    new Float:P[3];
    GetPlayerPos(playerid,P[0],P[1],P[2]);
    GetPlayerVelocity(playerid,P[0],P[1],P[2]);
    SetPlayerVelocity(playerid,P[0],P[1],P[2]+5.0);
    }

zcmd

    new Float:P[3];
    GetPlayerPos(playerid,P[0],P[1],P[2]);
    GetPlayerVelocity(playerid,P[0],P[1],P[2]);
    SetPlayerVelocity(playerid,P[0],P[1],P[2]+5.0);
    return 1;
Reply


Messages In This Thread
Enable/Disable megajump - by newbienoob - 21.04.2012, 05:57
Re: Enable/Disable megajump - by RollTi - 21.04.2012, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)