How to make bounce command? - 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: How to make bounce command? (
/showthread.php?tid=220287)
How to make bounce command? -
[WSF]ThA_Devil - 03.02.2011
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...
AW: How to make bounce command? -
Nero_3D - 03.02.2011
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)
Re: How to make bounce command? -
[WSF]ThA_Devil - 03.02.2011
ok i got to try that....
Re: How to make bounce command? -
[WSF]ThA_Devil - 03.02.2011
Thx! it worked! i added to 0.25 and its enough xD