SA-MP Forums Archive
Jumping help(levels) - 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)
+--- Thread: Jumping help(levels) (/showthread.php?tid=338455)



Jumping help(levels) - Andregood - 29.04.2012

Removed.


Re: Jumping help(levels) - Face9000 - 29.04.2012

pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerVelocity(playerid,x,y,z)
SetPlayerVelocity(playerid,0.0,0.0,0.6); //Your Z floats.
(playerid, Float, Float:y, Float:z)


Re: Jumping help(levels) - Andregood - 29.04.2012

I honestly don't see how that can change anything? I'm basically having the same thing?


Re: Jumping help(levels) - Face9000 - 29.04.2012

At SetPlayerVelocity why u set this in way:

vx + 0.0,vy - 0.0 ,vz

..?You dont need to specify again vx,vy and vz because u've already specified.


Re: Jumping help(levels) - Kar - 30.04.2012

vx + 0.0,vy - 0.0 lol what?


Re: Jumping help(levels) - SuperViper - 30.04.2012

pawn Код:
if(PlayerInfo[playerid][pJump] < 0)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 1.0);
            }
            if(PlayerInfo[playerid][pJump] == 0)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.3);
            {
            if(PlayerInfo[playerid][pJump] == 1)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.4);
            }
            if(PlayerInfo[playerid][pJump] == 2)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.5);
            }
            if(PlayerInfo[playerid][pJump] == 3)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.6);
            }
            if(PlayerInfo[playerid][pJump] == 4)
            {
            SetPlayerVelocity(playerid,vx + 0.0,vy - 0.0 ,vz + 0.7);

                    }



Re: Jumping help(levels) - Andregood - 30.04.2012

Nope, none works I'm afraid. And yeah, that's because the character is jumping.

I'm wondering if I'm doing it incorrectly somehow..