Quote:
Originally Posted by jonnyboy
for unban:
pawn Код:
dcmd_unban(playerid, params[]) { new pName[24], pFile[50], str[256], playerIP[256]; if(PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!"); return true; } GetPlayerName(playerid, pName, sizeof(pName)); format(pFile, sizeof(pFile), "LARP/Users/%s.ini", params); playerIP = dini_Get(pFile, "PlayerIP"); if(!strlen(params)) { SendClientMessage(playerid, COLOR_GRAD1, "Usage: /unban [playername]"); return true; } if(!dini_Exists(pFile)) { SendClientMessage(playerid, COLOR_GRAD1, "No such player found in the database."); return true; } format(str, sizeof str, "unbanip %s", playerIP); PlayerInfo[playerid][Locked] = 0; PlayerInfo[playerid][Banned] = 0; return true; }
make sure also to edit. to it fit with your GM
|
thanks
but i have one little question (read first post)..