Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: image/png');
- $json_content = file_get_contents("http://team-tt.com/userinfo.php?userinfo&fields=getAll&username=_Savior.", false);
- $player_info = json_decode($json_content);
- $image = imagecreatefrompng('IMAGENAMEHERE.png');
- $orange = imagecolorallocate($image, 255, 64, 0);
- $blue = imagecolorallocate($image, 0, 178, 238);
- $black = imagecolorallocate($image, 0, 0, 0);
- $yellow = imagecolorallocate($image, 225, 106, 0);
- $font1 = 'arial.ttf';
- imagettftext($image, 11, 0, 93, 97, $orange, $font1, $player_info->Username);
- imagettftext($image, 11, 0, 60, 117, $orange, $font1, $player_info->Score);
- imagettftext($image, 11, 0, 80, 137, $orange, $font1, $player_info->Robbery_Skill);
- imagettftext($image, 11, 0, 361, 154, $orange, $font1, $player_info->Hour_Played);
- imagettftext($image, 11, 0, 108, 157, $orange, $font1, $player_info->Terrorist_Skill);
- imagettftext($image, 11, 0, 82, 177, $orange, $font1, $player_info->Arrests_Made);
- imagettftext($image, 11, 0, 379, 174, $orange, $font1, $player_info->Minute_Played);
- imagepng($image);
- imagedestroy($image);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment