Car Hop
#5

pawn Код:
forward CarHop(playerid); // On Top of your script
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/carhop", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0, 5.0);
            SetTimer("CarHop", 5000, 1);
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFF, "You are not in a vehicle");
        return 1;
    }
    return 0;
}
pawn Код:
public CarHop(playerid) // Put somewhere in your script
{
    SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0, 5.0);
    return 1;
}
Script not tested
Reply


Messages In This Thread
Car Hop - by stieben - 23.01.2010, 17:42
Re: Car Hop - by FireFox_ - 23.01.2010, 17:50
Re: Car Hop - by stieben - 23.01.2010, 18:10
Re: Car Hop - by stieben - 23.01.2010, 18:16
Re: Car Hop - by FireFox_ - 23.01.2010, 18:30
Re: Car Hop - by braduz - 23.01.2010, 20:54
Re: Car Hop - by stieben - 24.01.2010, 12:01
Re: Car Hop - by mansonh - 24.01.2010, 12:17
Re: Car Hop - by stieben - 24.01.2010, 13:27
Re: Car Hop - by MadeMan - 24.01.2010, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)