Could This Work?
#5

Well idk if this works but it returned no errors

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Model = GetVehicleModel(vehicleid);
    if(Model == 427 && !ispassenger)
    {
        GetPlayerArmour(playerid, StoreArmour[playerid]);
    }
    if(PlayerTied[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(PlayerCuffed[playerid] != 0)
    {
        ClearAnimations(playerid);
    }
    if(IsACopCar(playerid) || IsAFBICar(playerid) || IsANGCar(playerid))
        {
        new
        Float:x, Float:y, Float:z, vehid;
        vehid = GetPlayerVehicleID(playerid);
        GetVehicleVelocity(vehid,x, y, z);
        if (x >= 0.0) x += 30.0;
        else x -= 30.0;
        if (y >= 0.0) y += 30.0;
        else y -= 30.0;
        if (z >= 0.0) z += 30.0;
        else z -= 30.0;
        SetVehicleVelocity(vehid, x, y, z);
    }
 return 1;
}
Reply


Messages In This Thread
Could This Work? - by Robert_Crawford - 09.06.2011, 05:51
Re: Could This Work? - by Ash. - 09.06.2011, 05:59
Re: Could This Work? - by Robert_Crawford - 09.06.2011, 06:03
Re: Could This Work? - by Ash. - 09.06.2011, 06:10
Re: Could This Work? - by Robert_Crawford - 09.06.2011, 06:17
Re: Could This Work? - by [L3th4l] - 09.06.2011, 06:22
Re: Could This Work? - by Robert_Crawford - 09.06.2011, 06:56
Re: Could This Work? - by Vince - 09.06.2011, 07:28
Re: Could This Work? - by Mean - 09.06.2011, 07:38
Re: Could This Work? - by Robert_Crawford - 09.06.2011, 07:47

Forum Jump:


Users browsing this thread: 6 Guest(s)