[HELP] Hidden Admin
#1

I'm using this (LuxAdmin System):

Код:
if (AccInfo[playerid][Hide] == 0)
	{
	if(AccInfo[playerid][Level] > 0)
	{
        new string[150], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s: {FFFFFF}%s", name, text);
        SendClientMessageToAll(0xAAFFCC00, string);
        return 0;
    }
    return 1;
	}
But how to make admin names (when you klick TAB) to the same color and how to make only admins hidden on minimap. Admin name color is only in chat 0xAAFFCC00 but I want that when I klick tab, then it is 0xAAFFCC00 too.
In tab menu the name colors are random.

Sorry For Bad English!

+REP
Reply
#2

https://sampwiki.blast.hk/wiki/Function:SetPlayerColor
Reply
#3

this might work:
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer

and this to hide/unhide the names, just put this in a loop:
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Reply
#4

Hidden would be:

PHP код:
0xRRGGBB00 
Reply
#5

I'm not da PRO scripter. I tried all this stuff. But nothing -.- I failed!

https://sampwiki.blast.hk/wiki/Function:SetPlayerColor

Tried but all the player colors are now the same.

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers

All players are hidden in minimap
Reply
#6

thats wut you wanted right? players hidden, and as i said, make a check for it, if he is admin he is hidden, else not, something with a check inside a loop?
Reply
#7

It is very helpful when you make me such a code. I'm noob. I'm learning pawno

Thank You!
Reply
#8

NoOne!?!?
Reply
#9

Updated!

pawn Код:
if (AccInfo[playerid][Hide] == 0)
    {
    if(AccInfo[playerid][Level] > 0)
    {
        new string[150], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s: {FFFFFF}%s", name, text);
        SetPlayerColor(playerid, SendClientMessageToAll(0xAAFFCC00, string));
        return 0;
    }
    return 1;
    }
Added "SetPlayerColor(playerid, SendClientMessageToAll(0xAAFFCC00, string));" but it makes player name BLACK, this is not a nice color. How to change this? I dont understand.

Thank You!
Reply
#10

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Use this, make something to get all players except the admin and set color as invisible to them using a loop.
Example:
for(new i; I<max_players; I++)
{
If admin break..
Else setplayermakerforplayer as invisible..
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)