hi i made a simple plugin to just know banlist but i don't know why its repeating( Console ^1PM : ) empty messgae
the last one called jombaz i added this guy just to still know if it will still repeating
hi i made a simple plugin to just know banlist but i don't know why its repeating( Console ^1PM : ) empty messgae
the last one called jombaz i added this guy just to still know if it will still repeating
Hey,
show us the plugin code
thanks mirko its works now
but a little console pm : if you helped me i will reall thank for you mirko
when the banlist need to show that no bans in the list of course when the admins type !banlists
its give this empty Pm and then give that no ban list
here the plugin i even don't use !tempban i use !ban because its auto save at main/ban.txt so its bettert then !tempban
<?php
$mod->registerCommand("banlists" , false , "banlist_ban");
function banlist_ban($guid){
global $mod;
global $players;
$file = @fopen("C:\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\ban.txt","r");
if($file !== false){
while(!feof($file)){
$send = trim(fgets($file));
if(substr($send,1) !== ""){
$isend = substr($send,24);
$players[$guid]->say("$isend");
}
if(substr($send,1) == ""){
$players[$guid]->say("None From Players Have Last Ban !");
}
}
}
}
?>