Phantom Of Rogue-Gon Posted March 17, 2014 Posted March 17, 2014 NPC for a player who want to Mute or Ban ip example : player want to mute this player name is "Example". npc: msg how can help you name of player Etc.... Mute and Ban ip <<<<<<<< our Menu mute - if choose mute the player type the reason why he want to mute the player "Example" then the player recieved the reason. why he mute. and ban ip - if type the player want to ban ip his name is "Example" then the player "Example" recieved the reason why he ban ip and the player complaint one time a day to complaint up for this Quote
sandbox Posted March 20, 2014 Posted March 20, 2014 Kindly test, though i'm not sure if IP ban would work properly. prontera,100,200,4 script Police 46,{ mes .Npc_Name$; mes "How may I help you, "+strcharinfo(0)+"?"; mes "Do you want to report someone?"; next; close2; mes .Npc_Name$; mes "Input the player you want to mute"; input .@player$; mes "Input the reason"; input .@reason$; if(!getcharid(3,.@mplayer$)) { mes "The player is not online"; close; } switch(select("Mute:IP Ban")) { case 1: atcommand "@mute "+.Mute_Time+" "+.@player$; message .@player$,"You have been muted by "+strcharinfo(0)+" [Reason: "+.@reason$+"]"; close; break; case 2: .@BanTime$ = atoi(gettimestr("%H",2))+.IPBan_Time; query_sql("INSERT INTO `ipbanlist` VALUES ('"+getcharip(.@mplayer$)+"','"+gettimestr("%Y-%m/%d %H:%M:%S",21)+"','"+gettimestr("%Y-%m/%d "+.@BanTime$+":%M:%S",21)+"','"+.@reason$+"')"); message .@player$,"You have been IP Banned by "+strcharinfo(0)+" [Reason: "+.@reason$+"]"; close2; sleep2 5000; atcommand "@kick "+.@player$; end; break; } end; OnInit: .Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]"; .Mute_Time = 5; //Mute for 5 minutes .IPBan_Time = 10; //IP Ban for 10 hours end; } Quote
Phantom Of Rogue-Gon Posted March 20, 2014 Author Posted March 20, 2014 this i got error from the script sir Quote
sandbox Posted March 20, 2014 Posted March 20, 2014 Can you remove the $ postfix on .@BanTime? and try again.. Weird, there were no syntax errors for me. Quote
Question
Phantom Of Rogue-Gon
NPC for a player who want to Mute or Ban ip
example :
player want to mute this player name is "Example".
npc: msg
how can help you name of player Etc....
Mute and Ban ip <<<<<<<< our Menu
mute - if choose mute the player type the reason why he want to mute the player "Example" then the player recieved the reason. why he mute.
and
ban ip - if type the player want to ban ip his name is "Example" then the player "Example" recieved the reason why he ban ip
and the player complaint one time a day to complaint
up for this
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.