[Question] /ban /unban
#2

Код:
	if(strcmp(cmd,"/banip",true)==0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerAdmin(playerid))
			{
			    tmp = strtok(cmdtext,idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid,COLOR_WHITE,"USAGE: /banip [ip]");
			        return 1;
	   		    }
				format(string,sizeof(string),"banip %s",tmp);
				SendRconCommand(string);
				SendRconCommand("reloadbans");
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "   You are not authorized to use that command !");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
[Question] /ban /unban - by mickos - 08.06.2012, 12:45
Re: [Question] /ban /unban - by lewismichaelbbc - 08.06.2012, 12:53
Re: [Question] /ban /unban - by mickos - 08.06.2012, 13:16
Re: [Question] /ban /unban - by AliHaider - 17.06.2012, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)