GET STEAM_USER_NAME / ID / other
Hi there,
I have thinked about some way, so people could sign up easy to our homepage, whitout going to our website www.united-gamers.net. So now i found a way, and i am pretty sure it can be done. First of all, in chat there whould come a message like: [INFO] Say "/signup (password)" with out qoutes to join the community! [INFO] Members get FREE VIP! (need action on website first) [INFO] For more info visit: www.united-gamers.net So as it says, u can just say etc: "/signup fred123321" to sign up. Then there would open up a MOTD called "signup.txt" with a iframe, wich could be done like this: <iframe src="https://united-gamers.net/in_game_signup.php?username=STEAM_USER_NAME&s team_name=STEAM_USER_NAME&pass=GET_THE_TYPED_ PASS"></iframe> <h2>Sign up complete!</h2> You now joined www.united-gamers.net. Please put unG^ in your name now, and manage your profile/account at: www.united-gamers.net/community/login.php - thank you for joining! I was woundering if someone could make this script for me prehabs? I know this is not a gift forum, but it would be nice if someone atleast could show me how to do that :-). (I am allready a php-programmer, so i understand the most of the code in pawn, when i read). Thank you, and have a nice day! |
Re: GET STEAM_USER_NAME / ID / other
Code:
|
Re: GET STEAM_USER_NAME / ID / other
Man, u are the best.. I will test this now..
Does %ssteam_name%s automaticly gets the steam account name (that u login with)? And can it also get the STEAMID? like ?steamid=%ssteam_id%s Thank you man, u the best! ;) |
Re: GET STEAM_USER_NAME / ID / other
Oh, working great, but almost :-).
Now the variable gets the steamid, thats great. But as i said before, can u get the steam_account_name? or atleast the ingamename? Like "SupERHeaDshoTtER1822" ? TY! |
Re: GET STEAM_USER_NAME / ID / other
ah, i have a great idea. I dont know if it is something you mgith wanted to help me with, but i can only say, that it would be great. And im just really dont want my reputation to be like im just the little johnny who just can get the programmers to program him stuff.
But. Theres my list, of things. You can just work on it, if you think you got time and can handle it: LIST OF GETS (from steam): steam id (got it) steam login-name steam IN-GAME-NAME To do after sucessfull signup: Change nick (amx_nick command) and put unG^ in front of name automaticly. Maybe shows a message like "LinkinBAC21 has joined United-Gamers.net - welcome!" But isint really nessacary, but would be a nice thing. ____________________________ Thats it. I dont know if it is simple, or hard, but by from my PHP-Programmer experience i wouldent say that this should be hard, if you know pawn well. Thank you - have a nice night/morning :-). |
Re: GET STEAM_USER_NAME / ID / other
Last edit from code:
Code:
#include <amxmodx> |
Re: GET STEAM_USER_NAME / ID / other
Quote:
|
Re: GET STEAM_USER_NAME / ID / other
oh okay, yeah. I was thinking the same aswell, but i wasent sure, because if u can say "Add players you are currenltly playing with to friendlist" i thought that it wasent a problem tho. But thanks, but what about the other gets ? You think that is possible? :)
|
Re: GET STEAM_USER_NAME / ID / other
but what is the "command" / "variable" to catch in-game-name?
|
Re: GET STEAM_USER_NAME / ID / other
The in-game name is already done for you (it's held by the variable "Name"). Line 58 retrieves the actual in-game name (as the function clearly says).
As it is you get this html: Code:
<iframe src="https://united-gamers.net/in_game_signup.php?username=STEAM_ID_IS_HERE&steam_name=IN_GAME_NAME_IS_HERE&pass=PASSWORD_IS_HERE"></iframe>^n<h2>Sign up complete!</h2>As for the Steam login name, when you add friends you only see the Steam Friends name. |
| All times are GMT -4. The time now is 13:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.