super jump
#1

how can i make like a command that when they put /jump each time they jump they super jump?
Reply
#2

pawn Код:
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;
}
Reply
#3

Uhm, do any of you actually READ the wiki sometimes? The page about OnPlayerKeyStateChange clearly states that you shouldn't use '==' to check for a key. Go read it.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Uhm, do any of you actually READ the wiki sometimes? The page about OnPlayerKeyStateChange clearly states that you shouldn't use '==' to check for a key. Go read it.
Uhm? Sir.. Mistakes exists on the world..
Reply
#5

Lets stay on topic.

here you go. This will be the same effect as the previus guy said.. but with /jump.


Код:
	if (strcmp("/jump", cmdtext, true, 10) == 0)
	{
    new Float:SuperJump[3];
    GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
    SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
	return 1;
	}

-Kevin
Crazy Awesome, Owner
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)