Only one player can see anyone on map?
#1

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

try this,, (not sure if this is gonna work)
add it in "OnGameModeInit"
pawn Код:
if(IsPlayerAdmin) {
ShowPlayerMarkers(1);
}
else {
ShowPlayerMarkers(0);
}
Reply
#3

add this at top of your script #define COLOR_INVISIBLE 0xFFFFFF00
And OnPlayerSpawn
add SetPlayerColor(playerid,COLOR_INVISIBLE);
Reply
#4

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

Use my code:P Everybody is invisible.
add this to at onplayerspawn
if(IsPlayerAdmin) {
SetPlayerPos(playerid,uadmincolour);
}
Reply
#6

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

Omg read my other code!(3rd post!)
Reply
#8

maybe that will work.. hmm i dont really know as it sets the player color to white... >_> it will be seen i think
Reply
#9

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

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

SetPlayerMarkerForPlayer
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)