10.11.2010, 11:53
I have:
But he Generate:
It:
Help...
Example:
'Deaths:' for 'Deaths:10'
Please
PHP код:
<?php
@include "conf/config.php";
$nick = trim(substr($_SERVER['PATH_INFO'], 1, strpos($_SERVER['PATH_INFO'],".")-1));
$file = @file($servpatch."/scriptfiles/stats/".$nick);
$money = substr(trim($file[0]),6);
$kills = substr(trim($file[1]),6);
$deaths = substr(trim($file[2]),7);
$admin= substr(trim($file[4]),11);
$im = ImageCreateFromPng("img/stats.png");
$string = '[FeK]Squad 4FuN';
$string3 = 'Player:'." $nick";
$string4 = 'Kills: '." $kills";
$string5 = 'Deaths: ' ." $deaths";
$string6 = 'Grana: ' ." $money";
$string7 = 'Admin: '." $admin";
$purple = imagecolorallocate($im, 53, 6, 58);
$purple2 = imagecolorallocate($im, 52, 36, 54);
$green = imagecolorallocate($im, 52, 36, 54);
$im = ImageCreateFromPng("img/stats.png");
$fnt = "fonts/verdana.ttf";
$c = ImageColorAllocate($im, 255, 255, 255);
ImageTTFText ($im, 13, 0, 85, 21, $purple2, $fnt, $string3) ;
ImageTTFText ($im, 11, 0, 235, 52, $purple2, $fnt, $string4);
ImageTTFText ($im, 11, 0, 50, 52, $purple2, $fnt, $string5);
ImageTTFText ($im, 11, 0, 50, 72, $purple2, $fnt, $string6);
ImageTTFText ($im, 11, 0, 235, 72, $purple2, $fnt, $string7);
ImageTTFText ($im, 7, 0, 130, 131, $green, $fnt, $string);
ImagePng($im);
ImageDestroy ($im);
?>
It:
Help...
Example:
'Deaths:' for 'Deaths:10'
Please