WebShop GM(Donate GameMaster)
:: Gamer :: Online Games :: Всичко за MuOnline
Страница 1 от 1
WebShop GM(Donate GameMaster)
Правите 1 файл gm.php в който пишете
[PHP]
<?php
iseedeadpeople();
switch (1) {
default:
if ($webshop['credits']['makegmchar']<1) {
print phrase_blocked_module;
break;
}
if ($_POST['cname']) {
$query = mssql_query("!@#$%^ [ctlCode] from [Character] where [Name]='".$_POST['cname']."'");
$result = mssql_fetch_row($query);
if ($result[0]!=$webshop['misc']['normalcode']) {
print phrase_not_normal;
break;
}
if ($webshop['credits']['makegmchar']>$mycreds) {
print phrase_lack_credits;
break;
}
if (in_array(strtolower($_POST['cname']), explode(',', $webshop['misc']['solidbans']))) {
print phrase_permbancantgm;
break;
}
mssql_query("exec XCredits '".$GLOBALS['mu_user']."', ".($webshop['credits']['makegmchar']*-1).";");
mssql_query("update [Character] set [ctlCode]=8 where [Name]='".$_POST['cname']."'");
shoplog(phrase_gm_log.$_POST['cname']);
print '<b>'.htmlspecialchars($_POST['cname']).'<font color=green>'.phrase_gamemaster.'</font></b><br><br>';
}
print '<fieldset style="width: 300px;background-color: #DDDDDD;border: 1px solid #000000; font-family: arial; font-size: 12px;"><legend class="mu_style2" style="padding: 3px;font-weight:bold;background-color: #DDDDDD;border: 1px solid #000000;border-bottom:0px;">Make Your Character GM!</legend>
<form method="post" action="">
Make Your Character GM will cost <b>'.number_format($webshop['credits']['makegmchar']).'</b> credits<br><br>
Character name <input type="text" name="cname" id="cname" maxlength="10" size="7">
<input type="submit" value="Make GM">
</fieldset>
';
}
?> [/PHP]
след това добавяте в wshmodules.php
[PHP]define('gm', moddir.'/gm.php'); // since v0.1 [/PHP]
След това добавяте в wshconf.php
[PHP]$webshop['credits']['makegmchar'] = 1000; // ГМ[/PHP]
в \lang\english.php
[PHP]#GM
define('phrase_not_normal', "Your Character Is Banned or GameMaster");
define('phrase_lack_credits', "You do not have enough credits to do that.");
define('phrase_gamemaster', " Is Game Master");
define('phrase_menu_GM', "Get Admin Hero");
[/PHP]
[/center][PHP]
<?php
iseedeadpeople();
switch (1) {
default:
if ($webshop['credits']['makegmchar']<1) {
print phrase_blocked_module;
break;
}
if ($_POST['cname']) {
$query = mssql_query("!@#$%^ [ctlCode] from [Character] where [Name]='".$_POST['cname']."'");
$result = mssql_fetch_row($query);
if ($result[0]!=$webshop['misc']['normalcode']) {
print phrase_not_normal;
break;
}
if ($webshop['credits']['makegmchar']>$mycreds) {
print phrase_lack_credits;
break;
}
if (in_array(strtolower($_POST['cname']), explode(',', $webshop['misc']['solidbans']))) {
print phrase_permbancantgm;
break;
}
mssql_query("exec XCredits '".$GLOBALS['mu_user']."', ".($webshop['credits']['makegmchar']*-1).";");
mssql_query("update [Character] set [ctlCode]=8 where [Name]='".$_POST['cname']."'");
shoplog(phrase_gm_log.$_POST['cname']);
print '<b>'.htmlspecialchars($_POST['cname']).'<font color=green>'.phrase_gamemaster.'</font></b><br><br>';
}
print '<fieldset style="width: 300px;background-color: #DDDDDD;border: 1px solid #000000; font-family: arial; font-size: 12px;"><legend class="mu_style2" style="padding: 3px;font-weight:bold;background-color: #DDDDDD;border: 1px solid #000000;border-bottom:0px;">Make Your Character GM!</legend>
<form method="post" action="">
Make Your Character GM will cost <b>'.number_format($webshop['credits']['makegmchar']).'</b> credits<br><br>
Character name <input type="text" name="cname" id="cname" maxlength="10" size="7">
<input type="submit" value="Make GM">
</fieldset>
';
}
?> [/PHP]
след това добавяте в wshmodules.php
[PHP]define('gm', moddir.'/gm.php'); // since v0.1 [/PHP]
След това добавяте в wshconf.php
[PHP]$webshop['credits']['makegmchar'] = 1000; // ГМ[/PHP]
в \lang\english.php
[PHP]#GM
define('phrase_not_normal', "Your Character Is Banned or GameMaster");
define('phrase_lack_credits', "You do not have enough credits to do that.");
define('phrase_gamemaster', " Is Game Master");
define('phrase_menu_GM', "Get Admin Hero");
[/PHP]
pisnamiotvas- VIP
- Брой мнения : 75
Points : 404
Reputation : 0
Join date : 15.03.2010
Similar topics
» OLD NO WEBSHOP,NO LAG,NO CRASH,NO BUG
» LinkosMu 99b+ 9999x 100% BlessBug Webshop
» BaiGanioMu <hard-server> exp70 <NO-Webshop>
» LinkosMu 99b+ 9999x 100% BlessBug Webshop
» BaiGanioMu <hard-server> exp70 <NO-Webshop>
:: Gamer :: Online Games :: Всичко за MuOnline
Страница 1 от 1
Права за този форум:
Не Можете да отговаряте на темите
|
|
Пон 19 Ное 2018, 00:01 by paynerr
» LockMU Season 6 Episode 3
Пон 12 Ное 2018, 20:02 by kaleikata
» DawnMu старата школа за старите играчи
Съб 26 Ное 2016, 01:13 by besnia3
» [AD] OPEN MU SEASON 3 EPISODE 1
Съб 09 Апр 2016, 06:29 by xtasy
» [AD] OPEN MU SEASON 3 EPISODE 1
Чет 07 Яну 2016, 10:11 by xtasy
» WarWorldMu 97d99i Exp: 200x Drop: 80%
Нед 16 Авг 2015, 20:20 by StrongHold
» LinkosMU Season 3 episode 1
Чет 14 Май 2015, 23:51 by StrongHold
» HARD MU (99b+)
Чет 16 Апр 2015, 16:23 by roly92
» [AD] OpenMu S3 , EP 1 max xp , fun server
Чет 26 Мар 2015, 16:14 by rogue93