11.09.2009, 21:51
Quote:
Originally Posted by BeckzyBoi
Use SetPlayerMapIcon and update the position in a timer. When the vehicle streams in use SetVehicleParamsForPlayer to show it and disable your own icon. When the vehicle streams out use SetPlayerMapIcon again.
|
I use this Timer:
pawn Код:
forward VehicleIconUpdate();
public VehicleIconUpdate()
{
new Float:X,Float:Y,Float:Z;
GetVehiclePos(Veh,Float:X,Float:Y,Float:Z);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
SetPlayerMapIcon(i, 12, X, Y, Z, 19, 0 );
}
}
return 1;
}