SA-MP Forums Archive
Simple question - 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: Simple question (/showthread.php?tid=187217)



Simple question - ZamaXor - 01.11.2010

if i'll set the player virtual world to 'smt' he wont be visible on the radar?


Re: Simple question - Kwarde - 01.11.2010

You only can use ID's
Example: SetPlayerVirtualWorld(playerid, 4);
If no one is in virtual world 4, you'll be invisible


Re: Simple question - Bessensap - 01.11.2010

No.

Use:
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
{
   SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00) // will show the playerid invisible on the radar for everyone.
}



Re: Simple question - ZamaXor - 01.11.2010

i have a problem when player enter to ammu nation his icon going miles away. I thought if i'll set the virtual world player marker will be visible inside ammu not in red country.


Re: Simple question - Scripter123 - 01.11.2010

u take coordinates inside?


Re: Simple question - Mike_Peterson - 01.11.2010

His icon is going miles away indeed... if u enter LSPD ur icon will be somewhere near a farm near blueberry :P
but thats the interior co-ordinates... those are Sky high... you cant reach them in interior 0 since there are no interiors in 0... just small things though..
u can do this:
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
new color;
color = GetPlayerColor(playerid);
if(newinteriorid == 0)
{
SetPlayerColor(playerid,color);
return 1;
}
else if(newinteriorid >= 1)
{
SetPlayerColor(playerid,0xFFFFFF00); // according to bessensap its invisible
}
return 1;
}
This code will set the players colour invisible on the radar and white in the chatbox.
When they change their interior, the colour is getting saved, then when the interior they are going is 0 the colour will be set back to the saved one and when the new interior is not 0 but higher or matched to 1 it will set the player invisible on the radar so u dont see icon miles away