My command does not work in game
#1

I try several solution for my order / ban works, but it shall not work at all. When I'm playing I hit my order / ban but its shows me nothing. Whereas when I compile my pawno I have no warning or error...

Код:
CMD:ban(playerid,params[])
{
    if(pInfo[playerid][pAdminLevel] >= 5)
    {
        if(IsPlayerConnected(playerid))
        {
			new targetid,reason[105],ip[50],string[256];
			if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,"{C0C0C0}USAGE /ban [playerid] [reason]");
			if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

			format(string, sizeof(string), " %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),reason);
			SendClientMessageToAll(-1,string);

			BanPlayer(targetid,reason,PlayerName(playerid));

			format(string,sizeof(string), "Vous avez йtй banni du serveur\n\n{DC143C}Banni par{ffffff}: %s\n{DC143C}Raison{ffffff}: %s\n\nPostulez pour кtre unban:\n{FFFF33}www.bientot.com",PlayerName(playerid), reason);
		    ShowPlayerDialog(targetid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"{DC143C}BANNI",string,"Fermer","");

            pInfo[targetid][pBanned] = 1;
            GetPlayerIp(targetid, ip, sizeof(ip));
            format(string, sizeof(string), "banip %s",ip);
			SetTimerEx("KickPlayer",100,false,"i",targetid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)