Help with SetVehicleParamsForPlayer
#1

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
Reply
#2

so the yellow icon don't work anymore?
Reply
#3

and is it possible i change the stream so i can see the yellow marker everywhere?
Reply
#4

if i do that then i don't get the whole map to
Reply
#5

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.
Reply
#6

ahhhh that is really bad
Reply
#7

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.
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)