[Help]SuperJump
#5

Код:
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
and jump key

Код:
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);
    }

	return 1;
}
have fun ! xd
Reply


Messages In This Thread
[Help]SuperJump - by .Campionull. - 08.08.2012, 14:10
Re: [Help]SuperJump - by [FSaF]Jarno - 08.08.2012, 14:12
Re: [Help]SuperJump - by .Campionull. - 08.08.2012, 14:23
Re: [Help]SuperJump - by Dan. - 08.08.2012, 14:32
Respuesta: [Help]SuperJump - by Convex - 08.08.2012, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)