23.10.2016, 15:17
Quote:
ocmd:unbanip(playerid,params[]) { new SpielerIP[32], str[64]; new adminstr[128]; if(!IsAdmin(playerid,2))return noaccess if(sscanf(params,"n",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; } |
and check this : https://sampforum.blast.hk/showthread.php?tid=570927