03.10.2014, 13:10
is that possible? can anyone do it for me on this cmd:
sorry for missed codes, i just removed a part from there.
PHP код:
CMD:aduty(playerid)
if(pInfo[playerid][pAdminLevel] >= 1)
{
if(pInfo[playerid][pAdminDuty] == 0)
{
pInfo[playerid][pAdminDuty] = 1;
new adutyonstring[128];
format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid));
SendClientMessageToAll(-1,adutyonstring);
SetPlayerColor(playerid,COLOR_WHITE);
SetPlayerHealth(playerid,999999.0);
SendClientMessage(playerid,COLOR_RED,"Remember to /aduty when you play as regular player.");
}
else
{
if(pInfo[playerid][pAdminDuty] == 1)
{
pInfo[playerid][pAdminDuty] = 0;
new adutyoffstring[128];
format(adutyoffstring, sizeof(adutyoffstring), "%s is now off admin duty" ,PlayerName(playerid));
SendClientMessageToAll(-1,adutyoffstring);
if(team[playerid] == TEAM_ZOMBIE)
{
SetPlayerColor(playerid,COLOR_ZOMBIE);
}
if(team[playerid] == TEAM_HUMAN)
{
SetPlayerColor(playerid,COLOR_HUMAN);
}
SetPlayerHealth(playerid,100);
}
}
}
}