i was have same problem but in server.cfg you have something called maps remove all maps and type your maps -> maps = "mp_killhouse,mp_crash" and save it
and in maps.cfg remove all maps and save only your maps mp_killhouse = "killhouse" and mp_crash = "crash"
for me its work if some one have a good idea another this idea so it will be good
Beiträge von GumGes1
-
-
did you set rconpassword ? because they said setrconpassword<> on non-object
-
i am using 0.12 beta
-
hello guys can i have a plugin that if some one have name < 3 Characters he will be warned then he will be kicked ? thanks
-
-
hello all
@Dennis please can i get your xfire ? i don't know how to send pm :biggrin:
and if is not inconvenience can you all mam team add your xfire here ?
my xfire : jombafst -
ok Mirko thanks for this info
-
yes i tested mikro plugin its work when i edit notes with yours thank you both.
-
yes and mikro
your plugin didn't work
Edit : thank you yenz i will try
$yenz = "thank you a lot";
$mod->rconsay("$yenz");
works and thanks for mikro -
he can use mod.log go to mod.log you will see commands... select all then empty and save changes
then make normal server from your cod4 run manuadmin join server then left and stop running manuadmin go to mod.log you will see at last thing when banner send its says the welcome message
the welcome message its shows your name and guid copy guid and paste -
lol i shouldn't do if(msg = mytime) ?
lol i see now what my problem ...
Edit : thanks mikro if i don't make wrong i never learn -
thanks mikro
but i already fix it with basic commands i changed (h:i) to (Y-m-d H:i:s) and works
and that's my plugin you can tell me what i am doing errorSpoiler anzeigen
<?php
function time($guid, $parameters) {
global $mod;
$mytime = array('Y','m','d');
$mytime = date;
$msg = implode("-",$mytime);
if($msg === $mytime){
$mod->rconSay("$mytime");
}
}
$mod->registerCommand("date");
?> -
hello guys the command !time shows only like example : ^2it's 14:5
but can we upgrade ?
upgrade to like example : ^2 Time : ^3 23/4/2014 15:23
i already make a plugin but showing a little error when i type !date or date at chat
can you upgrade ?
edit : sorry if i do some spam here in development section -
in fun messages you can add it like in config.cfg
[aliases]
rules = "fun rules"[funmessages]
rules = "no hack {{br}} no camp .."or here for the plugin go down you will see the link in the last post
PM. RULES -
ok thanks i will try
EDIT : lol i am so sorry for this little error
i didn't see it
edit :thank you both guys really helped me a lot thank you again works 100% -
Spoiler anzeigen
<?php
$mod->registerEvent("playerSay", "hello");
function hello($args) {
global $mod;
list($guid, $message, $executed) = $args;
$msg =$params[1];
$search = 'hi';
$pos = strpos($msg,$search);
if($pos !== false) {
$mod->rconSay("hi");
}
}
?> -
which file i need to send ?
what file ?
i can't understand. you mean plugin file ? -
thanks mikro i will try now
Edit :
Spoiler anzeigen
Notice in :\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\plugins\hello.php:6 => Undefined variable: params
-
thank you a lot
now i can read your plugin and understand what happening because i am still new thank you a lot masterEdit : error
Spoiler anzeigen
11:22 [01.07.14 16:14:05] PHP-Error: Warning in :\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\plugins\test.php:5 => Missing argument 2 for hello(), called in C:\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\classes\mod.class.php on line 276 and defined
11:22 [01.07.14 16:14:05] PHP-Error: Notice in :\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\plugins\test.php:7 => Undefined variable: params
11:27 [01.07.14 16:14:10] PHP-Error: Warning in :\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\plugins\test.php:5 => Missing argument 2 for hello(), called in C:\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\classes\mod.class.php on line 276 and defined
11:27 [01.07.14 16:14:10] PHP-Error: Notice in :\Users\user\Desktop\Call of Duty 4 - Modern Warfare\main\mam_0.12_beta\plugins\test.php:7 => Undefined variable: params
the problem its $params.. -
works and added
can you see my edit ? it works ?