Vehicle spawn system problem
#2

pawn Код:
stock GetVehicleModelIDFromName(vname[])
{
    for(new i = 0; i < 211; i++)
    {
        if(strfind(aVehicleNames[i], vname, true) != -1)
        return i + 400;
    }
    return -1;
}

stock GetXYInFrontOfPlayer(playerid, &Float:x2, &Float:y2, Float:distance)
{
    new Float:a;

    GetPlayerPos(playerid, x2, y2, a);
    GetPlayerFacingAngle(playerid, a);

    if(GetPlayerVehicleID(playerid))
    {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }

    x2 += (distance * floatsin(-a, degrees));
    y2 += (distance * floatcos(-a, degrees));
}
Reply


Messages In This Thread
Vehicle spawn system problem - by PaYkOK - 06.05.2012, 15:51
Re: Vehicle spawn system problem - by ViniBorn - 06.05.2012, 15:53
Re: Vehicle spawn system problem - by Jonny5 - 06.05.2012, 15:54
Re: Vehicle spawn system problem - by PaYkOK - 06.05.2012, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)