SA-MP Forums Archive
super jump - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: super jump (/showthread.php?tid=168859)



super jump - FireCat - 17.08.2010

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


Re: super jump - Claude - 17.08.2010

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;
}



Re: super jump - Vince - 17.08.2010

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.


Re: super jump - Claude - 17.08.2010

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..


Re: super jump - Kevin_Joshen - 17.08.2010

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