How to custom /adminduty name
#2

Quote:

//Aduty
new Aduty[MAX_PLAYERS];

Quote:

CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(Aduty[playerid] == 0)
{
new string[128];
format(string, sizeof(string), "* Admin %s da onduty: Su dung /baocao neu phat hien bug,loi!.",GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerArmour(playerid, 10000.0);
SetPlayerHealth(playerid, 10000.0);
Aduty[playerid] = 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Ban da off duty.");
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
SetPlayerColor(playerid,COLOR_WHITE);
Aduty[playerid] = 0;
}
}
return 1;
}

this man
Reply


Messages In This Thread
How to custom /adminduty name - by Zidaan - 07.02.2017, 10:51
Re: How to custom /adminduty name - by huansohn - 07.02.2017, 10:57
Re: How to custom /adminduty name - by huansohn - 07.02.2017, 11:00
Re: How to custom /adminduty name - by Dayrion - 07.02.2017, 11:23
Re: How to custom /adminduty name - by kloning1 - 07.02.2017, 14:20
Re: How to custom /adminduty name - by Zidaan - 07.02.2017, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)