SA-MP Forums Archive
/CarJump - 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: /CarJump (/showthread.php?tid=271049)



/CarJump - omer5198 - 22.07.2011

how can i make a /CarJump command but that when i use it on another player... he will keep driving to the same direction without stop... like bounce... not jump... if you didn't understand what i'm asking comment and i will try to explain better


Re: /CarJump - Raimis_R - 22.07.2011

Look if i understand it correct

pawn Код:
command(carjump, playerid, params[])
{
    new
        id;
       
    if(sscanf(params,"r", id)) SendClientMessage(playerid, -1,"USAGE: /carjump [playerid]");
    else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, -1,"INVALID player id!");
    else
    {
        new
            veh = GetPlayerVehicleID( id ), Float:Car[3];
           
        GetVehiclePos(veh, Car[0], Car[1], Car[2]);
        SetVehiclePos(veh, Car[0], Car[1], Car[2] +50 );
    }
    return 1;
}



Re: /CarJump - omer5198 - 22.07.2011

i tried this already... but it stop the car and make it go up a little bit... i want it to go up but still go forward...


Re: /CarJump - MadeMan - 22.07.2011

pawn Код:
GetVehicleVelocity(vehicleid, x, y, z);
SetVehicleVelocity(vehicleid, x, y, z+1);