Jump to content

Recommended Posts

Posted

Awesome idea! ..drives me crazy looking for english to polish and english to french translations online only to end up being laugh at.

Posted

No Last Stand

No Grenade launchers

No Marty

 

Last Stand kielletty

Grenade Launcher kielletty

Martyrdom kielletty

 

theres the rules in finnish but i dont think u actually do to much with them as u actually cant get the game in finnish so basicly ppl would get confused if we used other words....

 

(kielletty = not allowed/against the rules)

Posted

Noob like me I have no idea what Last Stand and Martydom means ingame. So those finnish rules ain't work I think...

 

Just my 2 cents :)

Posted

In CoD4 you make 'classes', you have up to 5 in which you define some perks (more health, ammo, nades, damage, etc, about 20 in total). Two of those are Last stand and Martyrdom. These are perks you have to choose yourself, in your class, to be able to use those. So, you have seen the words at least once.

 

 

This doesn't hold for grenade launcher though, a default class has a grenade launcher.

Posted

In my Polish version of Cod 4

 

Last Stand = Ostatni bastion

Grenade launcher = Granatnik

Marty(martyrdom) = Męczennik

Posted

Yep we need the Polish rules

 

I've noticed this guy "IVAR" or "Ivar-Something ?" playing a few times lately, and he ALWAYS uses Last Stand and/or Marty.

I warned him a couple times last night as only 6 or 8 of us were on the HC server, and I think I was the only =F|A= member,

the system finally auto-booted him, but he was back playing by the next map. I asked him if he spoke English, and he replied

No he speaks Polish, and I doubt I'll remember pawuska's commands above, so !rulesP or whatever would be great !

Posted (edited)

full.png

 

config/rules.cfg:

[english]
nogl = "No grenade launchers allowed"
nols = "^6No last stand allowed"
nomartyr = "No martyrdom allowed"

[french]
nogl = "Pas De Lance Grenade"
nols = "^6Pas De Baroud D'honneur"
nomartyr = "Pas De Martyre"

 

plugins/multilanguage-rules.php:

<?php

$multilanguage_rules = new multilanguage_rules();

$mod->registerCommand("rules",          false,           "rules",   $multilanguage_rules);
$mod->registerCommand("r",     		'~^r \S+$~i',    "r",       $multilanguage_rules);

class multilanguage_rules {
private $rules = array();
private $mod;
private $logging;

public function __construct() {
	$this->mod = &$GLOBALS['mod'];
	$this->logging = &$GLOBALS['logging'];

	$this->rules = parse_cfg_file($this->configDir . "config/rules.cfg", true);
	$this->logging->write(MOD_NOTICE, "Config loaded: rules.cfg");
	print_r($this->rules);
}

public function rules($guid, $parameters) {
	$this->r($guid, array("english"));
}

public function r($guid, $parameters) {
	if(isset($this->rules[$parameters[0]])) {
		foreach($this->rules[$parameters[0]] as $rule) {
			$this->mod->rconSay($rule);
		}
		return true;
	}
	foreach ($this->rules as $key) {
		if(isset($key[$parameters[0]])) {
			$this->mod->rconSay($key[$parameters[0]]);
		}
	}
}
}
?>

 

Furthermore:

Add rules and r to allow the commands to players in config/groups.cfg and remove the "old" plugin for !rules. And the commands for !nogg etc can be removed :)

 

 

 

If we hear a grenade launcher, we can simply say !r nogl and we 'hope' that someone catches his/her own language. If we see a notorious DesDélinquantsFRENCH, we say !r french. Can't be easier. Execpt for !french perhaps... :P

 

Anyway, this was more something for myself (holidays :yahoo), to see if I didn't forget how to program, but it might be useful for FA :)

 

 

[edit] forgot a bit of text

Edited by rolf

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.