08.07.2011, 14:52
Could someone help me to do add admin off-duty stuff to this?
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
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;
}