atm. we're busy with developing the next version of mam
Hi Mirko911
ty for info
tell me when next version comin?
atm. we're busy with developing the next version of mam
Hi Mirko911
ty for info
tell me when next version comin?
Hi ALL
so NOT solution !
:blink:
anyone !
Hi all
Raiden
I think you have problem link
your MAM can't find you server or your PHP
try make you PHP and MAM in different Disc
maybe (IP or Port, see you config.cfg)
PS.Удачи (RU) >> Good luck (EN)
you're the first one who asks for it
if you want this feature, we can try to implement it into the next MAM Version
Yo Mirko911
thx for answer
nice news ty to ,pity you can't create with this version
well i wait next version
Hi all team MAM
why exist restricted weapon in map, but not in game type
i think this question can respond me developers MAM
PS.sorry for bad english (google translate)
:cool:
Das ergibt keinen sinn wenn du das jede Map anzeigen willst von den spielern die auf dme Server sind kein spieler wird 1000 Kills schaffen.Its not possible to make 1000 kills on 1 Map so the SQL syntax doesnt make sense and with the new Database class its kinda different anyway.
Hi all
i m agree Voices
its not possible 1000 kill in one map
:blink:
so guys not solution?
Hello & moin^^
thx for answer
but i tolk to 3 best players show in the game how messages
no !statst
show evry 2 minuts the best 3 players in the game
and second questions
every maprotate new 3 best player
thx
Hi MAM team
exist messages in server the best players or 3 best players
but show every 60 sec(example) stats 3 best players,every map rotate new stats 3 best players
Please try to describe the problem a little bit better, noone can help you with those texts,
and to be honest they are violating our ToS. So please, try to express yourself in a manner
that is a bit more understandable or i really need to take action against you. We just can't
sit here for hours to think about what you are meaning.
Hi all & Denis
You need just see what we talk here
it's not difficult.
we want try one PHP and commands ,for restrict weapon in SD game type
:cool:
Hi MAM team
hello ketchupmaster
dont work
maybe need change name PHP
wpgt
Alles anzeigenNo I havnt. But to make it easier for you...
PHP file her: Download PHP file here
Upload the PHP file to plugins.Then add this to the config.cfg:
[wpgt]
enabled = 1
weapons = "p90,knife,etc"
gametype = "sd"
warnstokick = 2
mode = "kick"
reason = "Used a restricted weapon: <WEAPON>"and modify the weapons to the weapons you want to restrict.
hi back
ty dude
you have tested?
it work?
Copy the code voices added, and open notepad++ or just notepad, past the code there and save the file as a .php file.
And add this to config.cfg
Spoiler anzeigen
[wpgt]enabled = 1weapons = "p90,knife,etc"gametype = "sd"warnstokick = 2mdoe = "kick"reason = "Used a restricted weapon: <WEAPON>"
yo all ,hi Ketchupmaster
you have test it?
it work?
can you send me you new PHP
because i try not work MAM
ins't the PHP attached to the spoiler ?! or am i completly wrong
hi all
we know need PHP
make it
Alles anzeigenSpoiler anzeigen
PHP Alles anzeigen<?php /* * WeaponrestrictionsGametype * Author: Voices * Xfire: voices95 */ $mod->setDefaultCV("wpgt", "enabled", 0); $mod->setDefaultCV("wpgt", "weapons", ""); $mod->setDefaultCV("wpgt", "gametype", "sd"); $mod->setDefaultCV("wpgt", "warnstokick", 2); $mod->setDefaultCV("wpgt", "mode", "kick"); $mod->setDefaultCV("wpgt", "reason", "Used a restricted weapon: <WEAPON>"); $wpgt = new WeaponrestrictionsGametype(); $wpgt->event_playerInit(); $mod->registerEvent("playerJoined", "event_playerInit", $wpgt); $mod->registerEvent("playerKill", "event_CheckKill", $wpgt); $mod->registerEvent("playerTeamKill", "event_CheckKill", $wpgt); class WeaponrestrictionsGametype { private $players; private $mod; private $logging; public function __construct() { $this->players = &$GLOBALS['players']; $this->mod = &$GLOBALS['mod']; $this->logging = &$GLOBALS['logging']; } public function event_CheckKill($parameters) { list($killer_guid, $victim_guid, $weapon) = $parameters; if (!$this->mod->getCV("wpgt", "enabled")) { return; } if ($this->players[$killer_guid]->isProtected()) { return; } if($this->mod->getCurrentGametype() !== $this->mod->getCV("wpgt", "gametype")) { return; } $weapons = explode(",", strtolower($this->mod->getCV("wpgt", "weapons"))); $restricted = false; if ($weapon[1] == "MOD_MELEE") { if (in_array("knife", $weapons)) { $restricted = true; } else { //Dont warn when player knived while he had a restricted weapon return; } } if($this->isForbiddenWeapon($weapon[0], $weapons)) { $restricted = true; } if (!$restricted) return; if ($this->players[$killer_guid]->wpgt_warns >= $this->mod->getCV("wpgt", "warnstokick")) { $this->punishPlayer($killer_guid, $weapon[0]); } } public function event_playerInit() { foreach (array_keys($this->players) as $guid) { $this->players[$guid]->wpgt_warns = 0; } } private function isForbiddenWeapon($weapon, $weapons) { if (!in_array($weapon, $weapons)) { return true; } return false; } private function punishPlayer($guid, $weapon) { switch ($this->mod->getCV("wpgt", "mode")) { case "tempban": $this->players[$guid]->tempBan(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; case "kick": $this->players[$guid]->kick(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; case "ban": $this->players[$guid]->ban(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; } } }
This Plugin is not tested yet.
Concifg.cfg:
[wpgt]
enabled = 1
weapons = "p90,knife,etc"
gametype = "sd"
warnstokick = 2
mdoe = "kick"
reason = "Used a restricted weapon: <WEAPON>"Hope it works if not tell me the Error.
Hi back Voices
don't work dude
i think need PHP
Alles anzeigenSpoiler anzeigen
PHP Alles anzeigen<?php /* * WeaponrestrictionsGametype * Author: Voices * Xfire: voices95 */ $mod->setDefaultCV("wpgt", "enabled", 0); $mod->setDefaultCV("wpgt", "weapons", ""); $mod->setDefaultCV("wpgt", "gametype", "sd"); $mod->setDefaultCV("wpgt", "warnstokick", 2); $mod->setDefaultCV("wpgt", "mode", "kick"); $mod->setDefaultCV("wpgt", "reason", "Used a restricted weapon: <WEAPON>"); $wpgt = new WeaponrestrictionsGametype(); $wpgt->event_playerInit(); $mod->registerEvent("playerJoined", "event_playerInit", $wpgt); $mod->registerEvent("playerKill", "event_CheckKill", $wpgt); $mod->registerEvent("playerTeamKill", "event_CheckKill", $wpgt); class WeaponrestrictionsGametype { private $players; private $mod; private $logging; public function __construct() { $this->players = &$GLOBALS['players']; $this->mod = &$GLOBALS['mod']; $this->logging = &$GLOBALS['logging']; } public function event_CheckKill($parameters) { list($killer_guid, $victim_guid, $weapon) = $parameters; if (!$this->mod->getCV("wpgt", "enabled")) { return; } if ($this->players[$killer_guid]->isProtected()) { return; } if($this->mod->getCurrentGametype() !== $this->mod->getCV("wpgt", "gametype")) { return; } $weapons = explode(",", strtolower($this->mod->getCV("wpgt", "weapons"))); $restricted = false; if ($weapon[1] == "MOD_MELEE") { if (in_array("knife", $weapons)) { $restricted = true; } else { //Dont warn when player knived while he had a restricted weapon return; } } if($this->isForbiddenWeapon($weapon[0], $weapons)) { $restricted = true; } if (!$restricted) return; if ($this->players[$killer_guid]->wpgt_warns >= $this->mod->getCV("wpgt", "warnstokick")) { $this->punishPlayer($killer_guid, $weapon[0]); } } public function event_playerInit() { foreach (array_keys($this->players) as $guid) { $this->players[$guid]->wpgt_warns = 0; } } private function isForbiddenWeapon($weapon, $weapons) { if (!in_array($weapon, $weapons)) { return true; } return false; } private function punishPlayer($guid, $weapon) { switch ($this->mod->getCV("wpgt", "mode")) { case "tempban": $this->players[$guid]->tempBan(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; case "kick": $this->players[$guid]->kick(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; case "ban": $this->players[$guid]->ban(str_replace("<WEAPON>", $weapon, $this->mod->getCV("wpgt", "reason"))); break; } } }
This Plugin is not tested yet.
Concifg.cfg:
[wpgt]
enabled = 1
weapons = "p90,knife,etc"
gametype = "sd"
warnstokick = 2
mdoe = "kick"
reason = "Used a restricted weapon: <WEAPON>"Hope it works if not tell me the Error.
Hi Voices
thx for help
i hope it work
:cool:
PS. don't need PHP?
Hi all
so anyone can help me?!?
i want retrict weapon in gametype "Searsh and destroy" just LMG (M249;RPD,M60)
MAM o.15 ?
The latest MAM version is ManuAdminMod 0.12 Beta
yo dude
i m sorry 0.12
sd= search and destroy ? :biggrin:
Hi all MAM team
lol Azad69 SD = Srarch and destroy
And from where did you downloaded MAM 0.15 ? :wacko:
Yo all
hi Azad69
from here i download MAM why?
hello team MAM
me to i have one question
is normal? when i kick player command work after 5 sec
mam is not right now