Raised This Month: $319 Target: $400
 79%   Almost there!

Top10 Motd(Steam avatar)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
talnaim9999
Member
Join Date: Feb 2018
Location: ISRAEL
Old 09-11-2021 , 09:58   Top10 Motd(Steam avatar)
Reply With Quote #1

Hi, i need help im trying to add players steam profile pictures to my "top10" motd
im wondering if there is a simple API to grab profile links using the steam APi for cs1.6 pawn?
talnaim9999 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-11-2021 , 17:26   Re: Top10 Motd(Steam avatar)
Reply With Quote #2

I highly doubt you'll even have enough characters (1536 max) to be able to put all those URLs into the MOTD.
__________________
fysiks is offline
talnaim9999
Member
Join Date: Feb 2018
Location: ISRAEL
Old 09-13-2021 , 07:37   Re: Top10 Motd(Steam avatar)
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
I highly doubt you'll even have enough characters (1536 max) to be able to put all those URLs into the MOTD.
yeah I forgot about it

The limit applies to the number of characters in the code or the result in the motd ?
im asking to be sure but im probably know the answer..

i checked in my html to test how many characters i had in the final result its to much like a 6K chars
even if i want top5 its like 3K xD


but i found this
https://amxmodx-es.com/showthread.ph...4619#pid214619

top 5 with steam avatars.
how he did it without pass the limit?
talnaim9999 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-13-2021 , 10:21   Re: Top10 Motd(Steam avatar)
Reply With Quote #4

you can do all the stuff in .php (unlimited characters) and then show it in motd, but it will be better with having mysql as rank/top15, not your local vault or database
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)
JocAnis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-13-2021 , 23:55   Re: Top10 Motd(Steam avatar)
Reply With Quote #5

The limit applies to the length of the string that you use with show_motd(). Showing a webpage is the only way that I know of to show more data. In this scenario, the webpage (e.g. PHP) does all the queries to Steam and generates the HTML. When using this method, there isn't a limit on length.

You might be able to send all the low level data in a URL (via GET) provided that the URL remains under 1536 characters. Then, your PHP script can get the avatar and any other data from Steam.

As mentioned by JocAnis, some people actually have access to the stats database from their web server so they can do everything from the PHP script and you just send the simple URL without any parameters.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:00.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode