• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN [REQUEST] Change Server GFX

Status
Not open for further replies.

Tunakill

Well-Known Member
Contributor
Insider
Its not possibil with sinusbot. But you can set a reload banner Intervall in your server settings. And if you wont you can PM me an I will sent you a banner changer PHP Script witch i made for an other sinusbot request.
 

HazeProduktion

Active Member
PHP:
<?php

    $sigImage = array("img1.jpg", "img2.jpg"); // Add/remove with the different filenames of you sig backgrounds

    // RANDOMIZE BACKGROUND //
    // Chooses a background from an array at random for the sig
    $sigIndex = rand(0, count($sigImage)-1);
    $sigImage = $sigImage[$sigIndex];
    // The main image to put the stats over.
    $imageExt = explode(".", $sigImage);
    if(strtolower($imageExt[1]) == "jpg"){
       $image   = imagecreatefromjpeg($sigImage);
    }elseif(strtolower($imageExt[1]) == "png"){
       $image   = imagecreatefrompng($sigImage);
    }else{
       die("Unsupported filetype!");
    }


    // WRITE OUT THE IMAGE //

    header('Content-type: image/jpeg');
    imagejpeg($image, NULL, 100);
    imagedestroy($image);

?>

this should working u need just a webspace
 
Status
Not open for further replies.
Top