Raised This Month: $51 Target: $400
 12% 

Get user ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 12-10-2015 , 13:55   Get user ip
Reply With Quote #1

Code:
new szName[32], authid[32]; 
               get_user_name(id, szName, charsmax(szName)) 
               if(equal(szName, "Sn3amtz"))
               get_user_authid(id, authid, 31)
               if( equali(authid, "STEAM_0:0:123456789") )
I want to remove name and steam but i want to get command for Ip

I want to get command only for a speciffic ip class

Last edited by Sn3amtz; 12-10-2015 at 14:39.
Sn3amtz is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-10-2015 , 14:18   Re: Get user ip
Reply With Quote #2

What are you really trying to do? Because you don't need a player's name to get their SteamID or IP.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 12-10-2015 , 14:39   Re: Get user ip
Reply With Quote #3

I want to get priority to use different commands only for a speciffic ip class

Example :
Code:
new szIP[32]
get_user_ip(id, szIP, charsmax(szName)) 
 if(equal(szIP, "188.212"))]

Last edited by Sn3amtz; 12-10-2015 at 14:45.
Sn3amtz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-10-2015 , 15:47   Re: Get user ip
Reply With Quote #4

So, what's the problem?

PHP Code:
new szIP[32]
get_user_ip(idszIPcharsmax(szIP), 1)

if(
equal(szIP"12.34.56.78"))
    
client_print(idprint_chat"Priority granted!"
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 12-10-2015 , 16:35   Re: Get user ip
Reply With Quote #5

Thanks
Sn3amtz is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-12-2015 , 14:50   Re: Get user ip
Reply With Quote #6

PHP Code:
new szIP[32]
get_user_ip(idszIPcharsmax(szIP), 1)

if( 
equalszIP"188.212") ) client_print(idprint_chat"Acces Granted!"

Last edited by siriusmd99; 12-12-2015 at 15:04.
siriusmd99 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-12-2015 , 15:00   Re: Get user ip
Reply With Quote #7

Why equalI and why change sz to us?

Last edited by OciXCrom; 12-12-2015 at 15:01.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-12-2015 , 15:04   Re: Get user ip
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Why equalI and why change sz to us?
Fixed.
siriusmd99 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 11:36.


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