SA-MP Forums Archive
markercolors on the radar - 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: markercolors on the radar (/showthread.php?tid=255306)



markercolors on the radar - PhantomDot1 - 15.05.2011

is there any code to change the colors of the markers on the radar ?


Re: markercolors on the radar - Spectre - 15.05.2011

See: SetPlayerMapIcon
(and you're suggesting people call you if they want something scripted?)


Re: markercolors on the radar - PhantomDot1 - 15.05.2011

with that SetPlayerMapIcon i cant archive what i want, now i have 3 npc cars running, and i want to change the colors of their squares on the minimap, and also those from the players.


Re: markercolors on the radar - xDeadlyBoy - 15.05.2011

SetPlayerColor


Re: markercolors on the radar - PhantomDot1 - 15.05.2011

SetPlayerColor(playerid, (colorid))??
and than a list with color id's or?


Re: markercolors on the radar - Marco_Valentine - 15.05.2011

big thanks to killer98p
https://sampforum.blast.hk/showthread.php?tid=157789


Re: markercolors on the radar - Marco_Valentine - 15.05.2011

use

Public Onplayerspawn
{
if(IsPlayerNPC(playerid))
{
SetPlayerColor(playerid, (colorid))
return 1;
}
return 0;
}


Respuesta: markercolors on the radar - Lunnatiicz - 15.05.2011

pawn Код:
#define COLOR_RED blablabla

public OnPlayerSpawn(playerid)
{
 if(IsPlayerConnected(playerid))
 {
  SetPlayerColor(playerid, COLOR_RED);
 }
 return 1;
}
Is an example


Re: markercolors on the radar - alpha500delta - 15.05.2011

Quote:
Originally Posted by Marco_Valentine
Посмотреть сообщение
use

Public Onplayerspawn
{
if(IsPlayerNPC(playerid))
{
SetPlayerColor(playerid, (colorid))
return 1;
}
return 0;
}
That will only work when a player is a NPC.


And @Lunnatiicz: You don't need to use IsPlayerConnected on OnPlayerSpawn.


Respuesta: Re: markercolors on the radar - Lunnatiicz - 15.05.2011

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
That will only work when a player is a NPC.


And @Lunnatiicz: You don't need to use IsPlayerConnected on OnPlayerSpawn.
Only was an example, i don't see because not ispire a moment xD

Is obviously when a player "spawn" it's officialment connected to server xd