Can i get /aduty cmd.
#10

Dude this is the how i wanted
Код:
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! Remember to check /reports!");
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 assistance)", GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_YELLOW, 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/her!)", GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
PlayerInfo[playerid][pAdminDuty] = 0;
}
return 1;
}
Reply


Messages In This Thread
Can i get /aduty cmd. - by sanjil_rijal - 11.04.2012, 09:48
Re: Can i get /aduty cmd. - by BigD - 11.04.2012, 09:52
Re: Can i get /aduty cmd. - by emp7y - 11.04.2012, 09:53
Re: Can i get /aduty cmd. - by squomp - 11.04.2012, 10:00
Re: Can i get /aduty cmd. - by sanjil_rijal - 11.04.2012, 10:12
Re: Can i get /aduty cmd. - by emp7y - 11.04.2012, 10:14
Re: Can i get /aduty cmd. - by squomp - 11.04.2012, 10:16
Re: Can i get /aduty cmd. - by sanjil_rijal - 11.04.2012, 10:16
Re: Can i get /aduty cmd. - by squomp - 11.04.2012, 10:19
Re: Can i get /aduty cmd. - by sanjil_rijal - 11.04.2012, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)