Limit weapon via IP.
Hi all,
I'm trying to implement a system on my server where if a player gets 8 kills in a row they will only be able to use the dual elites for the rest of that map. So I don't need the players IP or Steam ID saved to a file...just kept in memory so if the player rejoins the map the server will remember that their weapons are limited. If I want to do this using a players IP address, would I have to use a dynamic array? |
Re: Limit weapon via IP.
Use SteamID. You can use normal arrays, however it will be restricted to the amount of SteamIDs equal to the size of array. You should use the dynamic ones in this case.
|
Re: Limit weapon via IP.
Quote:
I just need to know how to store the SteamID in an array. And how I would check to see if a players SteamID is in that array. |
Re: Limit weapon via IP.
Quote:
PHP Code:
|
Re: Limit weapon via IP.
Yami, Trie would be perfect for this situation, lazy to write example, but he can search around and find what he wants
|
Re: Limit weapon via IP.
Upgrade your nosteam server so you can use steamids :mrgreen:
|
Re: Limit weapon via IP.
Quote:
|
Re: Limit weapon via IP.
Quote:
Code:
|
Re: Limit weapon via IP.
Quote:
xPaw, this is the first I've heard of Trie. Interesting. And thanks for the response guys. I was gonna give you good karma but it looks like it's been removed. lol |
Re: Limit weapon via IP.
Quote:
|
| All times are GMT -4. The time now is 14:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.