how to hold user ip/authid/userid in plugin ??
Hey, I would like to make a plugin that gives an advertisement messages...
PHP Code:
These 4 messages should be displayed in order within 1 map :] Should it look like: PHP Code:
|
Re: how to hold user ip/authid/userid in plugin ??
If they disconnect then there is no point in trying to send them a message. You cannot use a userid in place of a player entity index.
|
Re: how to hold user ip/authid/userid in plugin ??
I mean reconnecting instead of disconnecting...
By the way, it's just an example with ads, I've other idea ;) |
Re: how to hold user ip/authid/userid in plugin ??
You can use Tries to save player data by their name/authid/ip/userid (string format).
|
Re: how to hold user ip/authid/userid in plugin ??
Um is there another way ? Because tries saves for longer time than 1 map :). I would like to make very simple plugin, that just gives warnings, for example after 3rd warning u get kick, and I want to save warning numbers for player, because when he comes back. if he gets 1 warning more, he will be banned...
4 warnings - kick player connects again, he still have 4 warnings, so 1 more, banned ! :) |
Re: how to hold user ip/authid/userid in plugin ??
Tries do not save over map.
|
Re: how to hold user ip/authid/userid in plugin ??
Ok...
Maybe an example ? (This http://forums.alliedmods.net/showthread.php?t=74753 tutorial didn't me explain anything ;D) |
Re: how to hold user ip/authid/userid in plugin ??
Quote:
|
Re: how to hold user ip/authid/userid in plugin ??
So I didn't found real tutorial over snippets/tutorials... Could someone give me an example ?
|
Re: how to hold user ip/authid/userid in plugin ??
I think this is all that you will need:
PHP Code:
|
| All times are GMT -4. The time now is 11:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.