AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   My Steam Community (https://forums.alliedmods.net/showthread.php?t=77361)

danielkza 09-11-2008 16:41

My Steam Community
 
1 Attachment(s)
My Steam Community

Commands:
  • say /mysteam
Type "/mysteam" in chat and it'll open your SteamCommunity Page. Lots of people said it wasn't possible in AMXX,but here is the proof it is.

Developer Information:
I used a string-based math like in PHP's BCMath. It can do addition of infinite lenght numbers. It will probably work with multiplication,but you would need new functions for division and subtraction. You can use the stocks in this file as you wish.

Licensed under the General Public License (GPL).

Thanks to voogru for the original discovery.

Arkshine 09-11-2008 17:08

Re: My Steam Community
 
Since I suck in Maths, I was not sure that a way did exist.

Good job, so.

danielkza 09-11-2008 17:16

Re: My Steam Community
 
Quote:

Originally Posted by arkshine (Post 684519)
Since I suck in Maths, I was not sure that a way did exist.

Good job, so.

All I did was translating the way people do additions in paper to code. Like 9+9= 18, put 8 carry 1, etc.

Reaper2331 09-11-2008 17:42

Re: My Steam Community
 
wouldnt this also work for myspace?
like for their url.

mine is pimpin_aint_easy_in_1992

so like /pimpin_aint_easy_in_1992 could open up their myspace?

Arkshine 09-11-2008 17:50

Re: My Steam Community
 
By the way, you should, at least, add credit for the person who has discovered originaly how to convert.

danielkza 09-11-2008 17:51

Re: My Steam Community
 
Quote:

Originally Posted by Reaper2331 (Post 684535)
wouldnt this also work for myspace?
like for their url.

mine is pimpin_aint_easy_in_1992

so like /pimpin_aint_easy_in_1992 could open up their myspace?

It has nothing to to with this. You can't figure out myspace or any other information based on their SteamID. All this does is translate the STEAM_0:0:xxxxx AuthID, used by the game, into SteamCommunity URLs.

danielkza 09-11-2008 19:38

Re: My Steam Community
 
Quote:

Originally Posted by arkshine (Post 684541)
By the way, you should, at least, add credit for the person who has discovered originaly how to convert.

Sorry, totally forgot, added now.

Reaper2331 09-11-2008 21:12

Re: My Steam Community
 
i know that, but i was saying this could also be a way to send them to their myspaces and stuff too, i was just saying that code could help do that.

danielkza 09-11-2008 21:34

Re: My Steam Community
 
Quote:

Originally Posted by Reaper2331 (Post 684599)
i know that, but i was saying this could also be a way to send them to their myspaces and stuff too, i was just saying that code could help do that.

This is outside of this plugin scope.

SchlumPF* 12-21-2008 12:34

Re: My Steam Community
 
that string calculations are awesome :D someone who has good kowndledges about this should really write some stocks to give pawn new abilities like floats with more than 6 decimal places etc etc :O


All times are GMT -4. The time now is 08:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.