DAMN IT DOESN'T WORK PROPERLY!
#8

pawn Код:
if((newkeys & KEY_FIRE) && (GetPlayerState(playerid) == 2))
{
    SetVelocityForward(playerid, 1.0);
}
You must also add the SetVelocityForward function to your script

pawn Код:
SetVelocityForward(playerid, Float:multi)
{
    if (IsPlayerInAnyVehicle(playerid))
    {
        new Float:angle, Float:velox, Float:veloy;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
        velox = multi * floatsin(-angle, degrees);
        veloy = multi * floatcos(-angle, degrees);
        SetVehicleVelocity(GetPlayerVehicleID(playerid), velox, veloy, 0.01);
    }
    return 1;
}
Reply


Messages In This Thread
DAMN IT DOESN'T WORK PROPERLY! - by stieben - 20.01.2010, 18:41
Re: DAMN IT DOESN'T WORK PROPERLY! - by timmehhh - 20.01.2010, 18:43
Re: DAMN IT DOESN'T WORK PROPERLY! - by MadeMan - 20.01.2010, 19:14
Re: DAMN IT DOESN'T WORK PROPERLY! - by Daren_Jacobson - 20.01.2010, 19:16
Re: DAMN IT DOESN'T WORK PROPERLY! - by MadeMan - 20.01.2010, 19:19
Re: DAMN IT DOESN'T WORK PROPERLY! - by stieben - 21.01.2010, 15:38
Re: DAMN IT DOESN'T WORK PROPERLY! - by stieben - 21.01.2010, 16:04
Re: DAMN IT DOESN'T WORK PROPERLY! - by MadeMan - 21.01.2010, 16:52
Re: DAMN IT DOESN'T WORK PROPERLY! - by stieben - 22.01.2010, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)