20.07.2017, 12:55
PHP код:
YCMD:aduty(playerid, params[], help)
{
new string[120];
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, CRVENA, "LH | {FFFFFF}Niste admin.");
switch(AdminDuty[playerid])
{
case 0:
{
format(string, sizeof string, ""CRVENA"LH | {F3F707}Admin {FF0000}%s {F3F707}je na dužnosti, za pomoć kucajte /pitaj.", GetName(playerid));
SendAdminMessage(-1, string);
AdminDuty[playerid] = 1;
God[playerid] = 1;
SetPlayerColor(playerid, COLOR_PURPLE);
SetPlayerArmour(playerid, 99.0);
}
case 1:
{
SetPlayerArmour(playerid, 0);
format(string, sizeof string, ""CRVENA"LH | {F3F707}Admin {FF0000}%s {F3F707}više nije na dužnosti.", GetName(playerid));
AdminDuty[playerid] = 0;
SetPlayerColor(playerid, BIJELA);
}
}
return true;
}