I Need Ladmin /unban Username
#10

Quote:
Originally Posted by jlalt
Посмотреть сообщение
i'm not sure but this should work .-.
PHP код:
CMD:unban(playerid,params[]) {
   if(
IsPlayerAdmin(playerid)) {
     if(
isnull(params)) return SendClientMessage(playeridred"USAGE: /unban [name]");
     if(
udb_Exists(params)) {
     if(
== dUserINT(params).("banned")) return SendClientMessage(playerid,red,"ERROR: Player is already unbanned");
     
dUserSetINT(params).("banned",0);
     new 
string[128];
     
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
     
format(string,sizeof(string),"You have Successfully unbanned {FF0000}%s",params);
     return 
SendClientMessage(playerid0x00FFFFAAstring);
     } else return 
SendClientMessage(playerid0xFF0000AA"ERROR: File doesnt exist, player isnt registered");
   } else return 
SendClientMessage(playerid0xFF0000AA"ERROR: You need to be RCON to use this command");

Works, Approved. Tested it with my GM and it works absolutely fine.
Reply


Messages In This Thread
I Need Ladmin /unban Username - by NightHell - 26.11.2015, 13:32
Re: I Need Ladmin /unban Username - by Abagail - 26.11.2015, 13:45
Re: I Need Ladmin /unban Username - by NightHell - 26.11.2015, 13:46
Re: I Need Ladmin /unban Username - by Abagail - 26.11.2015, 13:48
Re: I Need Ladmin /unban Username - by NightHell - 26.11.2015, 13:53
Re: I Need Ladmin /unban Username - by Abagail - 26.11.2015, 13:55
Re: I Need Ladmin /unban Username - by NightHell - 26.11.2015, 13:58
Re: I Need Ladmin /unban Username - by jlalt - 26.11.2015, 14:16
Re: I Need Ladmin /unban Username - by NightHell - 26.11.2015, 14:22
Re: I Need Ladmin /unban Username - by Logic_ - 26.11.2015, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)