• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

War System 0.3.6 Poszukuje

OTS/MODS/guildWarSystem.xml
http://wklej.org/id/357259/

Do bazy danych dodaj:
Kod PHP:
Code:
[*]ALTER TABLE `guilds`
[*]ADD `invited_to` INT( 11 ) NOT NULL ,
[*]ADD `invited_by` INT( 11 ) NOT NULL ,
[*]ADD `in_war_with` INT( 11 ) NOT NULL ,
[*]ADD `kills` INT( 11 ) NOT NULL ,
[*]ADD `show` SMALLINT( 1 ) NOT NULL ,
[*]ADD `war_time` INT( 11 ) NOT NULL ;
Kod PHP:
Code:
[*]CREATE TABLE `deaths_in_wars` (
[*]`guild_id` INT( 11 ) NOT NULL ,
[*]`player_id` INT( 11 ) NOT NULL ,
[*]`killer_guild` INT( 11 ) NOT NULL ,
[*]`killer` INT( 11 ) NOT NULL ,
[*]`date` INT( 11 ) NOT NULL ,
[*]`result1` INT( 11 ) NOT NULL ,
[*]`result2` INT( 11 ) NOT NULL
[*]) ENGINE = MYISAM ;
kod PHP:
Code:
 UPDATE `guilds` SET `invited_to` = 0, `invited_by` = 0, `in_war_with` = 0, `kills` = 0, `show` = 0, `war_time` = 0 WHERE `id` > 0;

htdocs/wars.php
http://wklej.org/id/357264/

A teraz z guilds.php usuń wszystko i wklej tam:
http://wklej.org/id/256720/?zawin=0

Do index.php dodaj:
Kod PHP:
Code:
[*]case "wars";
[*]$subtopic = "wars";
[*]$topic = "Wars";
[*]include("wars.php");
[*]break;

Do layout.php dodaj:
Kod PHP:

Code:
[*]<a href='index.php?subtopic=wars'>
[*]<div id='submenu_wars' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
[*]<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
[*]<div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
[*]<div class='SubmenuitemLabel'><font color="red">Wars</font></div>
[*]<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
[*]</div>
[*]</a>
I ciesz się nowym War Systemem.

Skrypt nie jest mój znalazłem na Innym Forum!
 
Back
Top