[Release] GameMaster On/off php script

KR373N

Well-Known Member
Joined
May 18, 2008
Messages
1,944
Reaction score
445
ГМ Лсит On/off php script

Code:
<?
include("config.php");
$query=mssql_query("SELECT * FROM Character WHERE CtlCode=32");
while($gm=mssql_fetch_array($query)){
$stat="";
$gmname=$gm['Name'];
$gmacc=$gm['AccountID'];
$query2=mssql_query("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id='$gmacc'");
$query3=mssql_query("SELECT GameIDC FROM AccountCharacter WHERE Id='$gmacc'");
$query3=mssql_result($query3, 0, 0);
$rquery2=mssql_num_rows($query2);
if($rquery2<1) { $query2 = '0'; }
else{ $query2=mssql_result($query2, 0, 0); }
if($query2=='1'){ 
if($query3==$gmname){ 
$stat =  '<font color=green><strong>[ON]</strong></font>';
 } 
}
if($query2=='0'){
  $stat =  '<font color=red><strong>[OFF]</strong></font>';
 }
if($query2=='1' AND $query3 <> $gmname){ 
 $stat =  '<font color=red><strong>[OFF]</strong></font>';
 }
      echo "$gmname $stat";
      echo "<br>";

}
?>


Ако вашия код за ГМ е 32 Просто променете

Code:
[COLOR="SeaGreen"]$query=mssql_query[/COLOR][COLOR="Red"] ("SELECT * FROM Character WHERE CtlCode=32")[/COLOR];


ако вие 8 променете така


Code:
[COLOR="SeaGreen"]$query=mssql_query[/COLOR] [COLOR="Red"]("SELECT * FROM Character WHERE CtlCode=8")[/COLOR];

Enjoy!
 
Last edited:

KR373N

Well-Known Member
Joined
May 18, 2008
Messages
1,944
Reaction score
445
просто невиждам смисъл като съм дал кодовете ако вие е различно от 32 кода не трудно да промениш 1 ред :d
 

SpArKHaWk

New Member
Joined
Jun 11, 2008
Messages
29
Reaction score
7
От къде се разбира какъв е кода ти за ГМ?
 

MapTuH4y

New Member
Joined
Apr 29, 2010
Messages
1,113
Reaction score
179
Този модул неможах да разбера ко прави :D Доколкото разбрах показва кой е GM и кой не :)
 

s1z3

New Member
Joined
Jan 9, 2010
Messages
111
Reaction score
19
Ако вашия код за ГМ е 32 Просто променете

Code:
[COLOR="SeaGreen"]$query=mssql_query[/COLOR][COLOR="Red"] ("SELECT * FROM Character WHERE CtlCode=32")[/COLOR];


ако вие 8 променете така


Code:
[COLOR="SeaGreen"]$query=mssql_query[/COLOR] [COLOR="Red"]("SELECT * FROM Character WHERE CtlCode=8")[/COLOR];

Enjoy!
Защо просто не го направиш така:

Code:
[COLOR="SeaGreen"]$query=mssql_query[/COLOR] [COLOR="Red"]("SELECT * FROM Character WHERE CtlCode=8 and CtlCode=32")[/COLOR]
 
Last edited:
Thread starter Similar threads Forum Replies Date
MapTuH4y [Release] SMS GameMaster + Timing Releases 30
L [Release] MMT Official Season II (Eng) Releases 0
^TheLast^ [Release] Main.exe 99.6XT(1.0M) Useful Offsets Releases 13
M [Release] Main.exe Offsets Releases 0
L [Release] DragonMu Official Web Package Releases 40
D3nKa7a [Release] zGuard v1.x Official Edition Releases 0
DarkMaster [Release] DarksTeam Official Season 4.5 - Beta 6 Releases 289
kazarma [Release] CrystalMu Season 5 Official Launcher Releases 17
DarkMaster [Release] DarksTeam Official Season 2 Beta 13 Releases 107
DarkMaster [Release] 1.00.18 Offsets Releases 6
E [Release] MuWeb 0.9 Decrypted (Official Release by =Master=) Releases 4
suh1q [Release] Official MuKorea Web edited by suh1q Releases 9
DarkMaster [Release] DarksTeam Official Season 3 Episode 2 - Beta 25 Releases 2024
MorgaN [Release] Official Morgan Web Beta only image rate Releases 28
ajemna21 [Release] MMT Official Season II (Eng) Releases 19
Shatter [Release] Ex-SrTeam Official Files (All-In-One) Releases 166
D [Release] Sell Resources Script - All PHP versions and MuOnline Seasons Releases 4
Angerfist [Release] PHP Inventory View Releases 3
f0und [Release] Xtyling web Online php module Releases 2
ivowe3 [Release] Stone & Rena Deposit and Rankings PHP code Releases 28
G [Release] GoblessMu Web + install.php file Releases 14
crazyboy [Release] PHP Mu Signature Releases 11
KR373N [Release] MuOnline PHP Server Loader Releases 16
Damian [Release] {PHP} Inventory Editor Releases 69
Bupyc™ [Release] PHP Castle Siege Web Information Releases 2
suh1q [Release] Phpbb2 Mu Template & MuWeb Template Releases 5
Mephisto [Release] [PHP] Show Stats Over 32767 Releases 30
Mephisto [Release] [PHP] Inventory View Releases 46
L [Release] MuWeb Ban IP PHP 0.2 Releases 0
pich [Release] Php Effective Anti Injection Script Releases 11
ludaka [Release] Secure In PHP Releases 11
Lesh0 [Release] PHP Castle Siege Web Information Releases 0
DarkMaster [Release] Most Users Online PHP Script Releases 14
ReaL [Release] PhpBB3 MuOnline Template Releases 31
KR373N [Release] [PHP] Anti SQL Injection Script Releases 6
DarkMaster [Release] MuWeb Ban IP PHP 0.2 Releases 12

Similar threads