Simple question
#1

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

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

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.
}
Reply
#4

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

u take coordinates inside?
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)