17.01.2013, 07:09
Well, I made a command to delete accounts INGAME
But nesesito ladmin function to delete the example put udb_Remove But no use xd.
pawn Код:
CMD:borrarcuenta(playerid, params[]){
if(PlayerInfo[playerid][Level] >= 8 || IsPlayerAdmin(playerid)) {
new tmp[256], Index; tmp = strtok(params,Index);
if(!strlen(params)) return SendClientMessage(playerid,red,"* Use: /borrarcuenta <Name>");
new nombre[MAX_PLAYER_NAME],nickname[256];
nickname = tmp;
if(udb_Exists(nickname)){
format(file,sizeof(file),"/ladmin/users/%s.sav",nombre);
format(string2,sizeof(string2),"* You have deleted the account: %s.",nickname);
SendClientMessage(playerid,yellow,string2);
udb_Remove(file);
return 1;
} else return SendClientMessage(playerid,red,"* The nick place, Our Partner is not among users.");
} else return Erroneo(playerid);
}