I need few thang's
#2

Well, I didnt understand your first question but on your second question for the /aduty heres what i came up with,
Код:
	CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "This is an admin only command!");
	if(PlayerInfo[playerid][pAdminDuty] == 0)
{

		SendClientMessage(playerid, COLOR_GREEN, "You are now on administrative duty! Either anwser(/ar) or decline(/tr)reports. Do your job!");
		PlayerInfo[playerid][pAdminDuty] = 1;
		SetPlayerHealth(playerid, 100000);
		SetPlayerArmour(playerid, 100000);
		new string[128];
		format(string, sizeof(string), "Administrator %s is now on Admin Duty!(/report for more assistance)", GetPlayerNameEx(playerid));
		SendClientMessageToAllEx(COLOR_LIGHTBLUE, string);
}
else
{
			SendClientMessage(playerid, COLOR_RED, "You are now off admin duty!");
new string[128];
			format(string, sizeof(string), "Administrator %s is now off Admin Duty!(Do not report for him or her)", GetPlayerNameEx(playerid));
			SendClientMessageToAllEx(COLOR_RED, string);
			SetPlayerHealth(playerid, 100);
			SetPlayerArmour(playerid, 50);
			PlayerInfo[playerid][pAdminDuty] = 0;
}
	return 1;
}
Just change the if(PlayerInfo[playerid][pAdmin] < 2) to what ever level you want it to be
Reply


Messages In This Thread
I need few thang's - by yarin0600 - 29.10.2012, 18:11
Re: I need few thang's - by cluckintucker - 29.10.2012, 18:22
Re: I need few thang's - by yarin0600 - 29.10.2012, 18:29
Re: I need few thang's - by czel - 29.10.2012, 18:58
Re: I need few thang's - by Glint - 29.10.2012, 19:16
Re: I need few thang's - by yarin0600 - 29.10.2012, 19:16
Re: I need few thang's - by czel - 29.10.2012, 19:21
Re: I need few thang's - by RedJohn - 29.10.2012, 19:21

Forum Jump:


Users browsing this thread: 4 Guest(s)