CMD To Ban someone that isn't connected.
#9

Here is an example (taken from my script)

PHP код:
CMD:banofflineplayer(playerid,params[])
{
    new 
string[90],tname[200];
    if(
sscanf(params"s[200]"tname)) return SendClientMessage(playerid,Yellow,"Correct Usage: /banofflineplayer [Player Name]");
    new 
filestring[128];
    
format(filestringsizeof(filestring), "/Users/%s.ini"tname);
     if(!
fexist(filestring)) return SendClientMessage(playerid,Lime"That name doesn't exist");
    else
    {
          new 
INI:File INI_Open(filestring);
        
INI_SetTag(File"data");
        
INI_WriteInt(File"Banned",1);
        
INI_Close(File);
        
format(stringsizeof(string),"Success! You have banned %s"tname);
        
SendClientMessage(playeridLime,string);
    }
    return 
1;

Using YINI + ZCMD.
Reply


Messages In This Thread
CMD To Ban someone that isn't connected. - by Joshman543 - 18.10.2012, 10:12
Re: CMD To Ban someone that isn't connected. - by Unte99 - 18.10.2012, 10:15
Re: CMD To Ban someone that isn't connected. - by gtakillerIV - 18.10.2012, 10:16
Re: CMD To Ban someone that isn't connected. - by Joshman543 - 18.10.2012, 10:16
Re: CMD To Ban someone that isn't connected. - by RenSoprano - 18.10.2012, 10:18
Re: CMD To Ban someone that isn't connected. - by Unte99 - 18.10.2012, 10:26
Re: CMD To Ban someone that isn't connected. - by RenSoprano - 18.10.2012, 10:29
Re: CMD To Ban someone that isn't connected. - by Slix_ - 18.10.2012, 10:32
Re: CMD To Ban someone that isn't connected. - by gtakillerIV - 18.10.2012, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)