23.10.2016, 15:13
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.
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?
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; } |
Like this :
"/unban (IP)"...
Can someone help me?