Help with SetVehicleParamsForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with SetVehicleParamsForPlayer (
/showthread.php?tid=96844)
Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
hello
I got a problem with SetVehicleParamsForPlayer
i tried this:
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer (scroll down to the 0.3)
but that won't work to
it don't show the yellow icon on it
Can anybody tell me if this is a bug or what is wrong?
Gijs
Re: Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
so the yellow icon don't work anymore?
Re: Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
and is it possible i change the stream so i can see the yellow marker everywhere?
Re: Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
if i do that then i don't get the whole map to
Re: Help with SetVehicleParamsForPlayer -
dugi - 11.09.2009
Quote:
Originally Posted by Gijs (TSG-Hosting.de)
and is it possible i change the stream so i can see the yellow marker everywhere?
|
It wouldn't be possible as stream_distance supports only values from 1 to 500. You'll have to create that icon in a different way.
Re: Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
ahhhh that is really bad
Re: Help with SetVehicleParamsForPlayer -
beckzy - 11.09.2009
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.
Re: Help with SetVehicleParamsForPlayer -
gijsmin - 11.09.2009
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.
|
if i use SetPlayerMapIcon i don't see the icon to
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;
}