Offline ban[+REP]
#10

PHP код:
CMD:ofban(playeridparams[])
{
    if(
isnull(params)) return SendClientMessage(playeridCOLOR_RED"USAGE:{FFFFFF}/oban [ACCOUNT NAME]");
    new
        
account[40] = "users/";
    
strcat(accountparams);
    
strins(account".ini");
    if(!
dini_Exists(account)) return SendClientMessage(playerid, -1"That player does not exist!");
    
dini_IntSet(account"banned"1);
    new
        
string[64];
    
format(stringsizeof(string), ""COL_LIME"Account %s has been banned"params);
    
SendClientMessageToAll(COLOR_YELLOW,string);
    return 
1;

Reply


Messages In This Thread
Offline ban[+REP] - by [SU]Spartan - 21.01.2017, 08:32
Re: Offline ban[+REP] - by BiosMarcel - 21.01.2017, 08:40
Re: Offline ban[+REP] - by [SU]Spartan - 21.01.2017, 08:41
Re: Offline ban[+REP] - by oMa37 - 21.01.2017, 08:49
Re: Offline ban[+REP] - by BiosMarcel - 21.01.2017, 08:50
Re: Offline ban[+REP] - by [SU]Spartan - 21.01.2017, 08:51
Re: Offline ban[+REP] - by BiosMarcel - 21.01.2017, 08:56
Re: Offline ban[+REP] - by Dutheil - 21.01.2017, 09:45
Re: Offline ban[+REP] - by [SU]Spartan - 21.01.2017, 10:38
Re: Offline ban[+REP] - by Yaa - 21.01.2017, 10:40

Forum Jump:


Users browsing this thread: 2 Guest(s)