Only one player can see anyone on map? -
nejc001 - 13.08.2011
It is possible to make that only one player(lets say admin) can see anyone on map and other players are invisible for each other?
Re: Only one player can see anyone on map? -
emokidx - 13.08.2011
try this,, (not sure if this is gonna work)
add it in "OnGameModeInit"
pawn Код:
if(IsPlayerAdmin) {
ShowPlayerMarkers(1);
}
else {
ShowPlayerMarkers(0);
}
Re: Only one player can see anyone on map? -
Admigo - 13.08.2011
add this at top of your script #define COLOR_INVISIBLE 0xFFFFFF00
And OnPlayerSpawn
add SetPlayerColor(playerid,COLOR_INVISIBLE);
Re: Only one player can see anyone on map? -
nejc001 - 13.08.2011
Quote:
Originally Posted by emokidx111
try this,, (not sure if this is gonna work)
add it in "OnGameModeInit"
pawn Код:
if(IsPlayerAdmin) { ShowPlayerMarkers(1); } else { ShowPlayerMarkers(0); }
|
this will set for all player markers, so it means, if there is admin online, players will see each other on map.
i want to make, that all players are invisible.. but only one special player(admin) can see other players.
just asking if its possible, cuz i dont see a way to be.
Re: Only one player can see anyone on map? -
Admigo - 13.08.2011
Use my code:P Everybody is invisible.
add this to at onplayerspawn
if(IsPlayerAdmin) {
SetPlayerPos(playerid,uadmincolour);
}
Re: Only one player can see anyone on map? -
emokidx - 13.08.2011
thats why i said m not really sure x.X
hmmm,, well i dont know anything except that
Quote:
Originally Posted by admigo
Use my code:P Everybody is invisible.
add this to at onplayerspawn
if(IsPlayerAdmin) {
SetPlayerPos(playerid,uadmincolour);
}
|
thats not invisibility..
its SetPlayerPos -,-
and its arguments will mismatch with that
Re: Only one player can see anyone on map? -
Admigo - 13.08.2011
Omg read my other code!(3rd post!)
Re: Only one player can see anyone on map? -
emokidx - 13.08.2011
maybe that will work.. hmm i dont really know as it sets the player color to white... >_> it will be seen i think
Re: Only one player can see anyone on map? -
Admigo - 13.08.2011
Here is full code.
Код:
//top of u script
#define COLOR_INVISIBLE 0xFFFFFF00
//onplayerspawn
if(IsPlayerAdmin) {
SetPlayerColor(playerid,COLOR_INVISIBLE);
}
else {
SetPlayerColor(playerid,YOURCOLOURFORADMINS);
}
The code works for my
Re: Only one player can see anyone on map? -
nejc001 - 13.08.2011
Quote:
Originally Posted by admigo
Here is full code.
Код:
//top of u script
#define COLOR_INVISIBLE 0xFFFFFF00
//onplayerspawn
if(IsPlayerAdmin) {
SetPlayerColor(playerid,COLOR_INVISIBLE);
}
else {
SetPlayerColor(playerid,YOURCOLOURFORADMINS);
}
The code works for my
|
yea i know what you mean, but invisible players will see admin, and they shouldn't... thats the problem.
Re: Only one player can see anyone on map? -
Vince - 13.08.2011
SetPlayerMarkerForPlayer