• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

gesior acc sygnatury lepsza wersja help...

Mareczin

New Member
Joined
Jul 22, 2014
Messages
4
Reaction score
0
Witam mam problem czy ktoś posiada lepsza wersję generatora sygnatur pod acc gesior? lub wie jak dodać aby wyświetłąły się takie informacje jak: rezydencja,płeć

kod php:

<?php
if(!defined('INITIALIZED'))
exit;

$player = new Player();
$player->find($_GET['name']);
if($player->isLoaded())
{
if(!file_exists('cache/signatures/' . $player->getID()) || filemtime('cache/signatures/' . $player->getID()) === false || filemtime('cache/signatures/' . $player->getID()) + 30 < time())
{
$image = imagecreatefrompng('./images/signatures/signature.png');
$color= imagecolorallocate($image , 255, 255, 255);
imagettftext($image , 12, 0, 20, 32, $color, './images/signatures/font.ttf' , 'Name:');
imagettftext($image , 12, 0, 70, 32, $color, './images/signatures/font.ttf' , $player->getName());

imagettftext($image , 12, 0, 20, 52, $color, './images/signatures/font.ttf' , 'Level:');
imagettftext($image , 12, 0, 70, 52, $color, './images/signatures/font.ttf' , $player->getLevel() . ' ' . Website::getVocationName($player->getVocation(), $player->getPromotion()));

if($player->getRank())
{
imagettftext($image , 12, 0, 20, 75, $color, './images/signatures/font.ttf' , 'Guild:');
imagettftext($image , 12, 0, 70, 75, $color, './images/signatures/font.ttf' , $player->getRank()->getName() . ' of the ' . $player->getRank()->getGuild()->getName());
}
imagettftext($image , 12, 0, 20, 95, $color, './images/signatures/font.ttf' , 'Last Login:');
imagettftext($image , 12, 0, 100, 95, $color, './images/signatures/font.ttf' , (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
imagepng($image, 'cache/signatures/' . $player->getID());
imagedestroy($image);
}
header("Content-type: image/png");
echo file_get_contents('cache/signatures/' . $player->getID());
}
exit;
 
PHP:
<?php
if(!defined('INITIALIZED'))
    exit;

$player = new Player();
$player->find($_GET['name']);
if($player->isLoaded())
{
    if(!file_exists('cache/signatures/' . $player->getID()) || filemtime('cache/signatures/' . $player->getID()) === false || filemtime('cache/signatures/' . $player->getID()) + 30 < time())
    {
        $image = imagecreatefrompng('./images/signatures/signature.png');
        $color= imagecolorallocate($image , 255, 255, 255);
        $color_shadow= imagecolorallocate($image , 0, 0, 0);
        
            //shadow
            imagettftext($image , 9, 0, 17, 26, $color_shadow, './images/signatures/tahomabd.ttf' , 'Name:');
            imagettftext($image , 9, 0, 61, 26, $color_shadow, './images/signatures/tahoma.ttf' , $player->getName());
        
        imagettftext($image , 9, 0, 17, 25, $color, './images/signatures/tahomabd.ttf' , 'Name:');
        imagettftext($image , 9, 0, 61, 25, $color, './images/signatures/tahoma.ttf' , $player->getName());
    
        
            //shadow
            imagettftext($image , 8, 0, 17, 38, $color_shadow, './images/signatures/tahomabd.ttf' , 'Level:');
            imagettftext($image , 8, 0, 53, 38, $color_shadow, './images/signatures/tahoma.ttf' , $player->getLevel());
        imagettftext($image , 8, 0, 17, 37, $color, './images/signatures/tahomabd.ttf' , 'Level:');
        imagettftext($image , 8, 0, 53, 37, $color, './images/signatures/tahoma.ttf' , $player->getLevel());
    
            //shadow
            imagettftext($image , 8, 0, 17, 51, $color_shadow, './images/signatures/tahomabd.ttf' , 'Residence:');
            imagettftext($image , 8, 0, 83, 51, $color_shadow, './images/signatures/tahoma.ttf' ,         $towns_list[$player->getWorldID()][$player->getTownID()]);
        imagettftext($image , 8, 0, 17, 50, $color, './images/signatures/tahomabd.ttf' , 'Residence:');
        imagettftext($image , 8, 0, 83, 50, $color, './images/signatures/tahoma.ttf' ,         $towns_list[$player->getWorldID()][$player->getTownID()]);
    

            //shadow
            imagettftext($image , 8, 0, 17, 64, $color_shadow, './images/signatures/tahomabd.ttf' , 'Last Login:');
            imagettftext($image , 8, 0, 82, 64, $color_shadow, './images/signatures/tahoma.ttf' , (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
        imagettftext($image , 8, 0, 17, 63, $color, './images/signatures/tahomabd.ttf' , 'Last Login:');
        imagettftext($image , 8, 0, 82, 63, $color, './images/signatures/tahoma.ttf' , (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
        
            //shadow
            imagettftext($image , 8, 0, 17, 77, $color_shadow, './images/signatures/tahomabd.ttf' , 'Profession:');
            imagettftext($image , 8, 0, 83, 77, $color_shadow, './images/signatures/tahoma.ttf' ,         Website::getVocationName($player->getVocation(), $player->getPromotion()));
        imagettftext($image , 8, 0, 17, 76, $color, './images/signatures/tahomabd.ttf' , 'Profession:');
        imagettftext($image , 8, 0, 83, 76, $color, './images/signatures/tahoma.ttf' ,         Website::getVocationName($player->getVocation(), $player->getPromotion()));
        
            //shadow
            imagettftext($image , 8, 0, 17, 90, $color_shadow, './images/signatures/tahomabd.ttf' , 'Sex:');
            imagettftext($image , 8, 0, 48, 90, $color_shadow, './images/signatures/tahoma.ttf' ,         (($player->getSex() == 0) ? 'female' : 'male'));
        
        imagettftext($image , 8, 0, 17, 89, $color, './images/signatures/tahomabd.ttf' , 'Sex:');
        imagettftext($image , 8, 0, 48, 89, $color, './images/signatures/tahoma.ttf' ,         (($player->getSex() == 0) ? 'female' : 'male'));
    
            if($player->getRank())
        {
                //shadow
                imagettftext($image , 8, 0, 17, 103, $color_shadow, './images/signatures/tahomabd.ttf' , 'Guild:');
                imagettftext($image , 8, 0, 52, 103, $color_shadow, './images/signatures/tahoma.ttf' , $player->getRank()->getName() . ' of the ' . $player->getRank()->getGuild()->getName());
            imagettftext($image , 8, 0, 17, 102, $color, './images/signatures/tahomabd.ttf' , 'Guild:');
            imagettftext($image , 8, 0, 52, 102, $color, './images/signatures/tahoma.ttf' , $player->getRank()->getName() . ' of the ' . $player->getRank()->getGuild()->getName());
        }
    
    
        imagepng($image, 'cache/signatures/' . $player->getID());
        imagedestroy($image);
    }
    header("Content-type: image/png");
    echo file_get_contents('cache/signatures/' . $player->getID());
}
exit;

czcionki do folderu /images/signatures
http://fontzone.net/font-details/tahoma-bold
http://www.fontpalace.com/font-details/Tahoma/

tahoma i tahomabold
 
Back
Top