Admin Names. (+rep)
#1

Hello,

How do i make an Admin Names. If you are on duty admin your name should be set on ADMIN NAME and your stats won't save unless if you go OFF DUTY.

Here is my Admin Duty Code:
Код:
CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "This is an admin only command!");
	{
			if(PlayerInfo[playerid][pAdminDuty] == 0)
			{

				SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
				PlayerInfo[playerid][pAdminDuty] = 1;
				SetPlayerHealth(playerid, 100000);
				SetPlayerArmour(playerid, 100000);
				//SetPlayerColor(playerid, COLOR_TWORANGE);
				//SetPlayerSkin(playerid, 294); - Commented by Voltage
				new string[128];
				format(string, sizeof(string), "Administrator %s(ID %d) is now on Admin Duty!", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
				//SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);
				SetPlayerHealth(playerid, 100);
				SetPlayerArmour(playerid, 0);
				SetPlayerToTeamColor(playerid);
				//SetPlayerSkin(playerid, 299); - Commented by Voltage
				PlayerInfo[playerid][pAdminDuty] = 0;
				new string[128];
				format(string, sizeof(string), "Administrator %s(ID %d) is now Off Admin Duty! ( Leave the Admin to Roleplay )", GetPlayerNameEx(playerid), playerid);
				ABroadCast(COLOR_YELLOW, string, 1);
			}
	}
	return 1;
}
Please Give me the exact code! Thanks alot!
Reply


Messages In This Thread
Admin Names. (+rep) - by ChristianIvann09 - 07.04.2014, 04:42
Re: Admin Names. (+rep) - by biker122 - 07.04.2014, 07:31
Re: Admin Names. (+rep) - by ChristianIvann09 - 07.04.2014, 07:36
Re: Admin Names. (+rep) - by biker122 - 07.04.2014, 07:48
Re: Admin Names. (+rep) - by ChristianIvann09 - 07.04.2014, 08:36
Re: Admin Names. (+rep) - by biker122 - 07.04.2014, 08:38
Re: Admin Names. (+rep) - by RajatPawar - 07.04.2014, 08:43
Re: Admin Names. (+rep) - by ChristianIvann09 - 07.04.2014, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)