AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client Info (https://forums.alliedmods.net/showthread.php?t=196987)

.Dare Devil. 09-27-2012 14:49

Client Info
 
Hello, its me again.
Im trying to client login system.
client setinfo holds index and password, so index will be like username but its number.
Problem right now is that setinfo can be full and my server can not write him that information.

There are now 2 ways in my system what client can choose

Quote:

[menu]
1. Enter index, password in motd, this way is bad because every connect he need to login and he will need to remember his password and index.
2. Write automatically index and password in config ( so he dont need to login every time )
If 2. fails and setinfo data is exceeded then what i want to give him is

Quote:

[menu] // setinfo is full
1 auto clean setinfo
2 disconnect and comeback with clean setinfo
3 how to clean setinfo by yourself
4 exit // if he choose this then he will have only 1. enter index password in motd, ohter ways kicked.
if he choose 1 then server read all setinfo keys and values what client have
then client can choose what he will remove.
Im always trying to make ohter life much easier by inventing new useful things
The problem is how do i get all setinfo key names and values?
-DareDevil

fysiks 09-27-2012 19:11

Re: Client Info
 
Quote:

Originally Posted by .Dare Devil. (Post 1807701)
The problem is how do i get all setinfo key names and values?

Not possible.

jimaway 09-28-2012 04:02

Re: Client Info
 
im not sure if the web browser thats in the motd window can handle cookies, but if it can you could use cookies to save the id/password

OvidiuS 09-28-2012 05:44

Re: Client Info
 
Quote:

Originally Posted by jimaway (Post 1808000)
im not sure if the web browser thats in the motd window can handle cookies, but if it can you could use cookies to save the id/password

Yup, you can, but you will need other motd to check the cookie.
After that you need sockets/sql base to deliver that info to plugin.

jimaway 09-28-2012 05:52

Re: Client Info
 
yea the overall "logging in" process will be really slow compared to just get_user_info, but atleast you wont have to worry about the info string being full :D

also i think it could be done with 1 motd window: you could redirect to other site if cookie is not present, or if possible just make the php script check if cookie exists and then give cookie/get info

Backstabnoob 09-28-2012 06:30

Re: Client Info
 
Isn't the server MOTD window handled as if it's been sent by the server, not the client? I'm pretty sure you will not be able to create player-specific cookies, but only server-specific.

jimaway 09-28-2012 06:35

Re: Client Info
 
wat

Backstabnoob 09-28-2012 06:37

Re: Client Info
 
This is not a fact:

The server sets the cookies only for ITSELF, which means, each time you would want to set a new cookie in the motd window, it will replace the last one, meaning you wouldn't be able to store one cookie for each client, which is completely pointless.

micapat 09-28-2012 06:37

Re: Client Info
 
I don't understand what you want to do. A Login System ? SteamID isn't enough for that ?

jimaway 09-28-2012 06:52

Re: Client Info
 
form wikipedia:
Quote:

A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user's previous activity.


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

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