How to make bounce command?
#1

I tried to make bounce command what moves vehicle up, Not SetVehiclePos
pawn Код:
if(!strcmp(cmdtext, "/bounce", true))
    {
        if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new Float:vx, Float:vy, Float:vz;
    GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
    SetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz * 1.5);
   
    }
        return 1;
    }
But, it didn't worked in-game, Script was ok.... that cmd just failed...
help me...
Reply
#2

I dont think that vehicles are moving upwards so vz is nearly zero
Just change vz in SetVehicleVelocity something between 0 and 1 (0.75 as example)
Reply
#3

ok i got to try that....
Reply
#4

Thx! it worked! i added to 0.25 and its enough xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)