Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- =|Player Name Tags|=
- .----------------. .-----------------. .----------------.
- | .--------------. || .--------------. || .--------------. |
- | | ______ | || | ____ _____ | || | _________ | |
- | | |_ __ \ | || ||_ \|_ _| | || | | _ _ | | |
- | | | |__) | | || | | \ | | | || | |_/ | | \_| | |
- | | | ___/ | || | | |\ \| | | || | | | | |
- | | _| |_ | || | _| |_\ |_ | || | _| |_ | |
- | | |_____| | || ||_____|\____| | || | |_____| | |
- | | | || | | || | | |
- | '--------------' || '--------------' || '--------------' |
- '----------------' '----------------' '----------------'
- Created By: Mattski
- */
- //--------------------------------[=INCLUDE=]---------------------------------//
- #include <a_samp >
- //----------------------------------------------------------------------------//
- //--------------------------------[=COLORS=]----------------------------------//
- #define DARK_RED 0xCC0000FF
- #define WHITE 0xFFFFFFFF
- //----------------------------------------------------------------------------//
- public OnPlayerSpawn(playerid)
- {
- if(!IsPlayerAdmin(playerid))
- {
- SetPlayerColor(playerid, WHITE);//Players name color overhead {THIS COLOR ALSO WILL BE SEEN WHEN PLAYERS PRESS "TAB" BUTTON}
- }
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success)
- {
- new pip[16];
- for(new i = GetPlayerPoolSize(); i != -1; --i)
- {
- GetPlayerIp(i, pip, sizeof(pip));
- if(!strcmp(ip, pip, true))
- {
- SetPlayerColor(i, DARK_RED);//RCON's name color overhead {THIS COLOR ALSO WILL BE SEEN WHEN PLAYERS PRESS "TAB" BUTTON}
- }
- }
- }
- return 1;
- }
- public OnPlayerText(playerid,text[])
- {
- if(!IsPlayerAdmin(playerid))//If player is not an RCON
- {
- new string[128], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "{FFFFFF}[Player] %s: %s",playername, text);//You can change "[Player]" and Colors to whatever you like
- SendClientMessageToAll(WHITE, string);
- return 0;
- }
- if(IsPlayerAdmin(playerid))//If player is an RCON
- {
- new string[128], playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "{CC0000}[OWNER] {FFFFFF}%s: %s",playername, text);//You can change "[OWNER]" and Colors to whatever you like
- SendClientMessageToAll(WHITE, string);
- return 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement