23.03.2013, 04:39
Well, I don't know how to script /boost and /bounce. Can anyone teach me how?

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;
}
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 Код:
|