21.03.2014, 11:51
I took this code from this forum only but im getting else erros and dont know how to fix it.Help will be appreciated.
Code:
Code:
Код:
CMD:unban(playerid, params[])
{
new string[128];
new pName[24];
if(isnull(params)) return SendClientMessage(playerid, -1, "{FF0099}[ADMIN]{FFFFFF} /unban [playername]");
{
format(string, 128, "{FF0099}[ADMIN]{FFFFFF} '%s' has been unbanned by %s.", params,pName);
SendClientMessageToAll(COLOR_ADMIN,string);
new year, month,day;
getdate(year, month, day);
new playa[MAX_PLAYER_NAME];
GetPlayerName(playerid, playa, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FF0099}[ADMIN]{FFFFFF} '%s' has been unbanned by %s.", params, playa);
SendClientMessageToAll(COLOR_ADMIN, string);
}
else
{
SendClientMessage( playerid, -1, "{FF0000}[ERROR]{FFFFFF}Not a banned account or no such account was found!" );
}
return 1;
}

