Raised This Month: $ Target: $400
 0% 

Limit weapon via IP.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-17-2010 , 09:42   Re: Limit weapon via IP.
Reply With Quote #1

Quote:
Originally Posted by Voltron View Post
Could you give me some example code?
Using CellArray
PHP Code:
// Create Array
new Array:array = ArrayCreate(34);


// Store SteamID
new authid[34];
get_user_authid(idauthidcharsmax(authid));
ArrayPushString(array, authid);


// See if SteamID exists
new authid[34];
new 
bool:found false;
new 
k;
new 
size ArraySize(array);
while (
size)
{
    
ArrayGetString(array, k++, authidcharsmax(authid));
    if (
equal(authid"STEAM_0:1:16"))
    {
        
found true;
        break;
    }
}
if (
found)
    
// SteamID found
else
    
// SteamID not found 
Not tested, but should work. There are might be more efficient ways, but this should at least point you in the right direction
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-17-2010 , 10:35   Re: Limit weapon via IP.
Reply With Quote #2

Upgrade your nosteam server so you can use steamids
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Voltron
Senior Member
Join Date: Jun 2007
Location: Above the battlefield.
Old 06-17-2010 , 21:38   Re: Limit weapon via IP.
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Upgrade your nosteam server so you can use steamids
It's a hybrid server so I can use SteamIDs too.

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
__________________
Voltron is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2010 , 21:44   Re: Limit weapon via IP.
Reply With Quote #4

Quote:
Originally Posted by Voltron View Post
It's a hybrid illegal server so I can use SteamIDs too.
__________________
fysiks 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 14:47.


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