31.03.2010, 01:25
Код:
if (strcmp(cmd, "/unban", true)==0) { if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=4) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [PlayerName_LastName]"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(giveplayer)); format(string, 256, "AdmWarning: %s has unbanned account %s", sendername, tmp); ABroadCast(COLOR_YELLOW,string,1); format(string, 256, "AdmWarning: %s has unbanned account %s", sendername, tmp); printf(string); format(string,sizeof(string),"users/%s.ini",tmp); dini_IntSet(string, "Banned", 0); dini_IntSet(string, "Warnings", 0); SendClientMessage(playerid, COLOR_WHITE, "Player Unbanned"); SendRconCommand(string); SendRconCommand("reloadbans"); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); } return 1; }
Level=1
AdminLevel=0
(and all other functions).
I have no clue what's causing this. Anyone experienced this problem before and fixed it? if so please help.