player marker. please help
#1

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
Reply
#2

Код:
COMMAND:backup(playerid, params[])
{
SetPlayerColor(playerid, 0xE60000FF);
return 1;
}
You'll need zcmd.
Reply
#3

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

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

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
Reply
#6

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

and can you also show me how to hide veryone on the radar at ongamemodeinit?
Reply
#8

pawn Код:
ShowPlayerMarkers(0);
That is what you want
Reply
#9

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
Reply
#10

they are still displayed when I get into the game car
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)