PDA

View Full Version : Need help with /boost and /bounce.


LeeXian99
23/03/2013, 04:39 AM
Well, I don't know how to script /boost and /bounce. Can anyone teach me how? :s

Dzines4SAMP
23/03/2013, 04:47 AM
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 -:


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

LeeXian99
23/03/2013, 04:54 AM
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 -:


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. :)