11.02.2010, 21:57
alright, i have fixed unban command for something, cause it use to never unban a player. but i fixed that, but now, the player that gets unbanned, there password changes?
if (strcmp(cmd, "/unban", true)==0) { if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 8 && PlayerInfo[playerid][pRealAdmin] == 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_PURPLE, "USAGE: /unban [playername]"); return 1; } if(!LoadPlayer(playerid,tmp)) { return 1; } if(PlayerInfo[playerid][pSuspended] == 0) { SendClientMessage(playerid, COLOR_RED, "That player is not banned!"); return 1; } else { PLlayerInfo[playerid][plLevel] = PLlayerInfo[playerid][plAdmin]; PlayerInfo[playerid][pSuspended] == 0; SavePlayer(playerid,tmp); SendClientMessage(playerid, COLOR_DBLUE, "Player Un-banned"); } } else { SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!"); } return 1; } |
Originally Posted by z-intact
saves the player file, i think..
|