SA-MP Forums Archive
[HELP] Hidden Admin - 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)
+--- Thread: [HELP] Hidden Admin (/showthread.php?tid=407396)



[HELP] Hidden Admin {DELETE THIS} - martin3644 - 13.01.2013

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


Re: [HELP] Hidden Admin - u3ber - 13.01.2013

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


Re: [HELP] Hidden Admin - niels44 - 13.01.2013

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


Re: [HELP] Hidden Admin - ThePhenix - 13.01.2013

Hidden would be:

PHP код:
0xRRGGBB00 



Re: [HELP] Hidden Admin - martin3644 - 13.01.2013

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


Re: [HELP] Hidden Admin - niels44 - 13.01.2013

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?


Re: [HELP] Hidden Admin - martin3644 - 13.01.2013

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

Thank You!


Re: [HELP] Hidden Admin - martin3644 - 14.01.2013

NoOne!?!?


Re: [HELP] Hidden Admin - martin3644 - 14.01.2013

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!


Re: [HELP] Hidden Admin - RajatPawar - 14.01.2013

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..
}