How to make something like this?
#1

[ame]http://www.youtube.com/watch?v=ppmAvBHe3yY[/ame]

Can someone make filterscript?
Reply
#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
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_FIRE)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new Float:vx,Float:vy,Float:vz;
        GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.8, vy *1.8, vz * 1.8); //adjust by yourself
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)