player marker. please help - 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: player marker. please help (
/showthread.php?tid=157168)
player marker. please help -
bartje01 - 05.07.2010
Hey guys. I never did this before.
I want that no one sees any player marker on their radar.
But when someone types /backup his player marker will show up.
can someone give me that little script?
Thanks in regards
Re: player marker. please help -
Calgon - 05.07.2010
Код:
COMMAND:backup(playerid, params[])
{
SetPlayerColor(playerid, 0xE60000FF);
return 1;
}
You'll need zcmd.
Re: player marker. please help -
bartje01 - 05.07.2010
But this will set your color to that.
I want that the radar has NO player markers.
But when someone types /backup there will be a marker of him on the radar.
Re: player marker. please help -
Calgon - 05.07.2010
Quote:
Originally Posted by bartje01
But this will set your color to that.
I want that the radar has NO player markers.
But when someone types /backup there will be a marker of him on the radar.
|
The color will change anyway, even with SetPlayerMarkerForPlayer.
Re: player marker. please help -
bartje01 - 05.07.2010
alright, but that is not really neccesary. I want that no one is one that radar. I want that you only will be displayed when you type /backup. please make that
Re: player marker. please help -
Calgon - 05.07.2010
Quote:
Originally Posted by bartje01
alright, but that is not really neccesary. I want that no one is one that radar. I want that you only will be displayed when you type /backup. please make that
|
That's how it works, you need to type /backup then it shows on the radar.
Re: player marker. please help -
bartje01 - 05.07.2010
and can you also show me how to hide veryone on the radar at ongamemodeinit?
Re: player marker. please help -
Dws - 05.07.2010
That is what you want
Re: player marker. please help -
CAR - 05.07.2010
OnPlayerConnect:
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(playerid, i, 00);
}
00 = invisible
/backup
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(i, playerid, /*GetPlayerColor(playerid) or something else*/);
}
but GetPlayerColor only works if you used SetPlayerColor
Something should work
Re: player marker. please help -
bartje01 - 05.07.2010
they are still displayed when I get into the game car