Jumping help(levels)
#1

Removed.
Reply
#2

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)
Reply
#3

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

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.
Reply
#5

vx + 0.0,vy - 0.0 lol what?
Reply
#6

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

                    }
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)