Admin off-duty help
#1

Could someone help me to do add admin off-duty stuff to this?

pawn Код:
CMD:adminduty(playerid, params[])
{
 new string[64];
 if (PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can't use this command!");
 if (PlayerInfo[playerid][pAdminLevel] <= 3) return SendClientMessage(playerid, 0x868479FF, "TIP: Use /modduty to go on duty!");
 {
    format(string, sizeof(string), "ADMINDUTY: You are now admin on duty! (Your adminlevel is %s) ", pAdminLevel);
    SendClientMessage(playerid, 0x00FF00FF, string);
    PlayerInfo[playerid][pAdminDuty] = 1;
}
return 1;
}
I have tried to create that off-duty thing with "else" but i'm receiving error "error 029: invalid expression, assumed zero" so could anyone help me making that off-duty thing thx
Reply


Messages In This Thread
Admin off-duty help - by Bu$ter - 08.07.2011, 14:52
Re: Admin off-duty help - by Rolyy - 08.07.2011, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)