SetPlayerColor() - 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: SetPlayerColor() (
/showthread.php?tid=208900)
SetPlayerColor() -
hanzen - 09.01.2011
Well.. I'm having a roleplay server, and I don't want it to display colors and icons. But for the cops I want it to display the blue color. And I have a /backup command for the cops which gives them a beacon.
Now the problem is, whenever a new player connects to the server he will see they cop as whitenamed. This is what I got under OnPlayerConnect()
pawn Код:
for(new i = 0; i<MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
}
for(new i = 0; i<MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
}
Do I really have to make a switch for each faction inside the loop?
Re: SetPlayerColor() -
Mr.Stranger - 09.01.2011
you have to save it
Re: SetPlayerColor() -
hanzen - 09.01.2011
?
(4char)
Re: SetPlayerColor() -
Toreno - 09.01.2011
You can use it under OnGameModeInit()
And everyone who connects won't see other players on map, and if anyone of the cops do /backup..
It will simply display the officer SetPlayerMarkerForPlayer...
(I may be didn't understand you well..)
pawn Код:
ShowPlayerMarkers(false);