Raised This Month: $ Target: $400
 0% 

IP Retriever


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical       
xer'
Junior Member
Join Date: Apr 2009
Old 04-14-2009 , 12:31   IP Retriever
Reply With Quote #1

IP RETRIEVER v1.0
by
xer'

Something like this i found here http://forums.alliedmods.net/showthread.php?p=141211

Description
:

The players can see their ip, tipying /ip.

Commands:
say
/ip


Attached Files
File Type: sma Get Plugin or Get Source (retriveip.sma - 912 views - 523 Bytes)

Last edited by xer'; 04-15-2009 at 13:29.
xer' is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-14-2009 , 12:32   Re: IP Retriever
Reply With Quote #2

Euhm...

Forgot to add .sma file?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xer'
Junior Member
Join Date: Apr 2009
Old 04-14-2009 , 12:33   Re: IP Retriever
Reply With Quote #3

Ya...done.
xer' is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-14-2009 , 12:37   Re: IP Retriever
Reply With Quote #4

?

Why 2 times the same thing?

PHP Code:
#include <amxmodx>
 
#define PLUGIN "IP retriever"
#define VERSION "1.0"
#define AUTHOR "xer'"
 
public plugin_init() {
 
register_plugin(PLUGIN,VERSION,AUTHOR)
 
register_clcmd("say /ip","ClCmd_Say")
 
register_clcmd("say_team /ip","ClCmd_Say")
}
 
public 
ClCmd_Say(id) {
 new 
ip[33]
 
get_user_ip(id,ip,32)
 
client_print(id,print_chat,"Your ip is %s",ip)
 return 
0;

This will work too...


----

Quote:
Description:
The players can see their ip, tipyng /ip.
->

Quote:
Description:
The players can see their ip by typing /ip.
__________________

Last edited by crazyeffect; 04-14-2009 at 12:42.
crazyeffect is offline
Send a message via MSN to crazyeffect
xer'
Junior Member
Join Date: Apr 2009
Old 04-14-2009 , 12:40   Re: IP Retriever
Reply With Quote #5

Quote:
Originally Posted by crazyeffect View Post
?

Why 2 times the same thing?

PHP Code:
#include <amxmodx>
 
#define PLUGIN "IP retriever"
#define VERSION "1.0"
#define AUTHOR "xer'"

public plugin_init() {
 
register_plugin(PLUGIN,VERSION,AUTHOR)
 
register_clcmd("say /ip","ClCmd_Say")
 
register_clcmd("say_team /ip","ClCmd_Say")
}

public 
ClCmd_Say(id) {
 new 
ip[33]
 
get_user_ip(id,ip,32)
 
client_print(id,print_chat,"Your ip is %s",ip)
 return 
0;

This will work too...
Ops
This is my 2nd plugin
I don't know well amx mod x scripting .
xer' is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-14-2009 , 12:41   Re: IP Retriever
Reply With Quote #6

Just fix that

I think its a great idea for a plugin...
__________________

Last edited by crazyeffect; 04-14-2009 at 13:11.
crazyeffect is offline
Send a message via MSN to crazyeffect
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-14-2009 , 12:46   Re: IP Retriever
Reply With Quote #7

None of this code is yours...

You copied v3x's work and then changed it to precache the players IP...

EDIT: I dont even think you know what you are doing...
get_user_ip
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 04-14-2009 , 13:07   Re: IP Retriever
Reply With Quote #8

DruGzOG is right ... and ...

this isn't a plugin it's just a doodle

nice idea but you can keep it for you

*WARNING* This is just my opinion! I'll repeat : just my opinion! Over!
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2009 , 13:33   Re: IP Retriever
Reply With Quote #9

@xer' : Use the same function ( already said above ) for both command. And you should return PLUGIN_HANDLED, not 0.
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-14-2009 , 14:34   Re: IP Retriever
Reply With Quote #10

22 (with port) or 16 (without) is enough @ len instead of 32.
__________________

anakin_cstrike 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 17:25.


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