Raised This Month: $ Target: $400
 0% 

Get data from user


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 04-01-2015 , 18:30   Get data from user
Reply With Quote #1

I'm creating plugin that allows player to log into his account. So I need player to give me his login and password. What are the ways to get data from player? It should be easy to use for player, something like forms in HTML.
I thought about the way that he is writing something on chat and I take it. First message is login and second is password. But it's not as elegant as I want :/ In AMXX I used a code like this:
Code:
client_cmd(id, "messagemode Give_Password");
seekenz is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-01-2015 , 23:26   Re: Get data from user
Reply With Quote #2

If "messagemode <something>" doesn't work with Source, you can simply do "messagemode" and check the next chat message written by that player and block it from displaying.
__________________
hleV is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 04-02-2015 , 01:44   Re: Get data from user
Reply With Quote #3

Custom ban reason implementation in sm would be an example of this.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
Reply



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 03:38.


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