How to make something like this?
#2

This is how its done!

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_FIRE)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            SetPlayerVelocity(playerid,150.0,0.0,0.0); //Change 150 to your needs!
                        // This is setting vehicle's Velocity to 150 at X direction!
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make something like this? - by Louris - 17.11.2012, 10:46
Re: How to make something like this? - by Ballu Miaa - 17.11.2012, 10:57
Re: How to make something like this? - by Horrible - 17.11.2012, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)