ts3 ile cs'ler farklı lokasyonlarda barınıyor.
Biri yurt dışı diğeri yurt içi.
Scriptin tam kodunu atın test edelim
CS Source Query Hk.
Moderatör: Moderatörler
-
Yönetici - Mesajlar: 5460
- Kayıt: Pzr Eyl 06, 2015 6:12 pm
- Server Ip/DNS: dm.csduragi.com
- Clan İsmi: csd
-
Konu Sahibi - Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
CS Source Query Hk.
Ömer TELLİ yazdı: Prş Haz 07, 2018 8:22 am ts3 ile cs'ler farklı lokasyonlarda barınıyor.
Biri yurt dışı diğeri yurt içi.
Scriptin tam kodunu atın test edelim
Kod: Tümünü seç
<?php
date_default_timezone_set('Europe/Istanbul');
$config = array('textfield' => [], 'sourcequery' => []);
/*
** Teamspeak Configurations
*/
//Teamspeak Connection IP
$config['teamspeak']['ip'] = 'xxx';
//Teamspeak Query Port
$config['teamspeak']['queryport'] = '10011';
//Teamspeak Connection/Voice Port
$config['teamspeak']['serverport'] = '9987';
//Teamspeak Query Login Name
$config['teamspeak']['loginname'] = 'serveradmin';
//Teamspeak Query Password
$config['teamspeak']['loginpass'] = 'xxx';
//Background Image to use
$config['backgroundimage'] = 'wd.png';
//Refresh Intervall for the Image Generator in seconds
$config['syncintervall'] = 10;
//SourceQuery config START
//Initially enables SourceQuery
$config['sqenable'] = true;
//Font File Path for Listing all available Parameters for the given Source Query Server
$config['sqlistfont'] = 'font/arial.ttf';
$config['sourcequery']['server1'] = [
//IP from Server
'ip' => '213.238.173.8',
//Port for Source Query
'port' => '27015',
//Timeout
'timeout' => 1,
//with this on true it will List all Available fields you can use directly on the banner
'debug' => false,
];
/*
Source Query Integration
Uses Library from https://github.com/xPaw/PHP-Source-Query
A List of Supported Games in the link above
Example for SourceQuery
$config['sourcequery']['server1'] = [
//IP from Server
'ip' => '213.32.98.79',
//Port for Source Query
'port' => '27015',
//Timeout
'timeout' => 1,
//with this on true it will List all Available fields you can use directly on the banner
'debug' => true,
];
//SourceQuery config END
** Textfields
** text = The Text which should be in the Field (all Available Placeholders on top of the config.php)
** xpos = The X Position where the Textfield is located (in Pixel)
** ypos = The Y Position where the Textfield is located (in Pixel)
** fontsize = The Fontsize the Text should have
** fontfile = The Font you want to use for the Text
** color = Hex Color of the Font (Like: #000080)
** EMPTY PRESET
$config['textfield'][] = [
'text' => '',
'xpos' => '',
'ypos' => '',
'fontsize' => '',
'fontfile' => 'font/bank.ttf',
'color' => '',
];
*/
$config['textfield'][] = [
'text' => 'Date',
'xpos' => '55',
'ypos' => '300',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%date%',
'xpos' => '20',
'ypos' => '325',
'fontsize' => '17',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'Time',
'xpos' => '278',
'ypos' => '300',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%timeHi%',
'xpos' => '270',
'ypos' => '327',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'Admin',
'xpos' => '48',
'ypos' => '173',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%groupcount[2]%',
'xpos' => '90',
'ypos' => '200',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'Slots',
'xpos' => '260',
'ypos' => '173',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%realclients%/%maxclients%',
'xpos' => '280',
'ypos' => '200',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'Platform',
'xpos' => '235',
'ypos' => '237',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%platform%',
'xpos' => '275',
'ypos' => '263',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'Ping',
'xpos' => '55',
'ypos' => '238',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%ping_floored% ms',
'xpos' => '50',
'ypos' => '263',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
$config['textfield'][] = [
'text' => 'cs1.6',
'xpos' => '478',
'ypos' => '173',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ffcc00',
];
$config['textfield'][] = [
'text' => '%status%',
'xpos' => '485',
'ypos' => '198',
'fontsize' => '20',
'fontfile' => 'font/bank.ttf',
'color' => '#000080',
];
/*
Display Clients Nickname
*/
$config['textfield'][] = [
'text' => 'Hello %nickname% <3',
'xpos' => '345',
'ypos' => '20',
'fontsize' => '21',
'fontfile' => 'font/bank.ttf',
'color' => '#e74c3c',
];
/*
EXAMPLE TEXTFIELD FOR SOURCE QUERY ArmA Server
*/
$config['textfield'][] = [
'text' => 'SourceQuery Slots',
'xpos' => '150',
'ypos' => '100',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ecf0f1',
];
$config['textfield'][] = [
'text' => '%sqinfo[server1][Players]%/%sqinfo[server1][MaxPlayers]%',
'xpos' => '150',
'ypos' => '150',
'fontsize' => '24',
'fontfile' => 'font/bank.ttf',
'color' => '#ecf0f1',
];
Diğer kısımları ts3 live-banner projesidir bunun için destek talebi sizden mail aracılıgıyla talep etmiştim zaten oradanda o konuyun cevabını hayla bekleyişteyiz. (belirteyim dedim sonra ts3 konfigurasyonunu ne için kullanıyorsun vs.vs.vs.)
Link: | |
Linklerini gizle |
-
Yönetici - Mesajlar: 5460
- Kayıt: Pzr Eyl 06, 2015 6:12 pm
- Server Ip/DNS: dm.csduragi.com
- Clan İsmi: csd
CS Source Query Hk.
Israrla ayar dosyasının içerisini niye atıyorsun ?
socket bağlantısı açtığın değişkeni var_dump ile ekrana basın, aldığınız hatayı buraya yazın
Hiç mi bağlantı kuramıyor, bağlantı kuruyor veri mi çekemiyor vs vs vs.
Başka türlü olamam
socket bağlantısı açtığın değişkeni var_dump ile ekrana basın, aldığınız hatayı buraya yazın
Hiç mi bağlantı kuramıyor, bağlantı kuruyor veri mi çekemiyor vs vs vs.
Başka türlü olamam
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
CS Source Query Hk.
Toplu rar halinde ataym o zmn bir sn yeni uyandımda sabah sabah uyanamadım hayla kusura bakmayın.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
CS Source Query Hk.
şimdi socketide denedim, connect yapan değişkenleride denedim var_dump ile ancak sonuç "şu anda bu isteği işleme alamıyor." ancak kodların yanlarında şimdi hltv goldsource falan yazısı gördum benim kafam iyice allak bullak oldu ömer bey musait iseniz size .rar halınde full files olarak gönderiyorum yardımcı olursanız bende diğer ilgisini çekicek arkadaşlarda mutlu olucaktır, musait değil bakamam derseniz artık sağlık olsunÖmer TELLİ yazdı: Prş Haz 07, 2018 9:40 am Israrla ayar dosyasının içerisini niye atıyorsun ?
socket bağlantısı açtığın değişkeni var_dump ile ekrana basın, aldığınız hatayı buraya yazın
Hiç mi bağlantı kuramıyor, bağlantı kuruyor veri mi çekemiyor vs vs vs.
Başka türlü olamam

Link: | |
Linklerini gizle |