Need help with /boost and /bounce. - 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: Need help with /boost and /bounce. (
/showthread.php?tid=424623)
Need help with /boost and /bounce. -
LeeXian99 - 23.03.2013
Well, I don't know how to script /boost and /bounce. Can anyone teach me how?
Re: Need help with /boost and /bounce. -
Dzines4SAMP - 23.03.2013
Got this pastebin on a boost system, hope you get the boost cmd from it -
http://pastebin.com/NeRP3WZy
About the bounce cmd, here ya go, credits don't go to me -:
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 * 0.25);
}
return 1;
}
Re: Need help with /boost and /bounce. -
LeeXian99 - 23.03.2013
Quote:
Originally Posted by Dzines4SAMP
Got this pastebin on a boost system, hope you get the boost cmd from it - http://pastebin.com/NeRP3WZy
About the bounce cmd, here ya go, credits don't go to me -:
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 * 0.25); } return 1; }
|
Thanks, but I need the /bounce works with H key, and what's the LMB mouse in bind? So I can change it.