28 Nisan 2015 Salı

Metin2 Karakterlere G�re Online Saya� (Lycan Dahil)

  Hiç yorum yok

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$savasci = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=0 or job=4) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($savasci)->count;
echo "Online Sava?c? Say?s? : $online_count"; ?>


Bu kodu Gerekecek Kadar Kopyalay?n yap??t?rn.

�rnek : Lycan karakterli swde 5 Defa gerekir

Kodlar �ak??mas?n diye " $savasci " bu kodu $ninja - $sura - $saman - $lycan diye Sayd?rmak istedi?iniz Karaktere g�re De?i?tirin

Kod 10 DK i�inde Online'a G�re ayarl?d?r istedi?iniz gibi ayarlay?n karakterlerin "job" Kodlar? Alttad?r

(job=0 or job=4) Sava?c?

(job=3 or job=7) ?aman

(job=1 or job=5) Ninja

(job=2 or job=6) Sura

(job=8) Lycan

Kolay GELS?N

online.php[ Dosyas?na Gereken Kodlar

<?php
$dbhost = "sunucuip"; // Serverinizin ?P Adresi.
$dbuser = "root"; // De?i?tirmeyin.
$dbpass = "dbsife"; // Navicat ?ifreniz.
$mysql_db = "account";
mysql_select_db("player");
?>



Yapamayanlar i�in Haz?r Kodlar

?aman

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$saman = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=3 or job=7) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($saman)->count;
echo "Online ?aman Say?s? : $online_count"; ?>


Sava?c?

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$savasci = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=0 or job=4) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($savasci)->count;
echo "Online Sava?c? Say?s? : $online_count"; ?>


Ninja

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$ninja = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=1 or job=5) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($ninja)->count;
echo "Online Ninja Say?s? : $online_count"; ?>


Sura

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$sura = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=2 or job=6) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($sura)->count;
echo "Online Sura Say?s? : $online_count"; ?>


Lycan

<?php include("online.php");
mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("player");
$sura = mysql_query("SELECT COUNT(*) as count FROM player WHERE (job=8) AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;");
$online_count = mysql_fetch_object($sura)->count;
echo "Online Lycan Say?s? : $online_count"; ?>


Demo Linki : PowerMt2

�n?zleme


Metin2 Karakterlere G�re Online Saya� (Lycan Dahil)


Hiç yorum yok :

Yorum Gönder

Blogger Eklentileri
ogretmen flickr https://myspace.com/hakandemirrz https://www.deviantart.com/mehmetcan34 https://band.us/band/88437432 miui majezik fiyat 2022 quroa tamam wordpress forum apple sorun