Need help with /boost and /bounce.
#1

Well, I don't know how to script /boost and /bounce. Can anyone teach me how?
Reply
#2

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;
    }
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)