Unban-IP Command doenst work
#1

Hey,

i tried to get some help from a german-samp forum which helped me a little bit but didnt fix my not working command.

Quote:

ocmd:unbanip(playerid,params[])
{
new SpielerIP[32], str[64];
new adminstr[128];
if(!IsAdmin(playerid,2))return noaccess
if(sscanf(params,"s[32]",SpielerIP)) return SendClientMessage(playerid,-1,"/unbanip <IP>");
{
format(str,sizeof(str),"unbanip %s",SpielerIP);
format(adminstr,sizeof(adminstr),"%s hat die IP % erfolgreich entbannt!",PlayerName(playerid));
for(new i=0; i<GetMaxPlayers(); i++)
{
if(!PlayerOnline(i))continue;
if(!IsAdmin(i,2))continue;
SendClientMessage(i,GELB,adminstr);
}
new logstr[128];
format(logstr,sizeof(logstr),"%s hat die IP-Adresse : %s erfolgreich entbannt!",PlayerName(playerid),SpielerIP);
AddLog("log_unbanip.txt",logstr);
SendRconCommand(str);
SendRconCommand("reloadbans");
}
return 1;
}

Always when i type /unban (My IP), there is always coming up the ClientMessage for how to use the command.

Like this :

"/unban (IP)"...

Can someone help me?
Reply


Messages In This Thread
Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:13
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:17
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:31
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:40
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:46
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 15:48
Re: Unban-IP Command doenst work - by Yaa - 23.10.2016, 15:52
Re: Unban-IP Command doenst work - by Konstantinos - 23.10.2016, 16:01
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 16:04
Re: Unban-IP Command doenst work - by amaruwhite - 23.10.2016, 16:06

Forum Jump:


Users browsing this thread: 8 Guest(s)