Raised This Month: $ Target: $400
 0% 

Can anybody help me with my plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fantarn
Member
Join Date: Feb 2011
Old 09-20-2011 , 03:46   Can anybody help me with my plugin?
Reply With Quote #1

Hello i made a plugin but i cant solve this problem with the cvar.

Quote:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "IP show"
#define VERSION "1.0"
#define AUTHOR "Fantarn"


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ip", "serverip")

}

public serverip(id)
{
client_print(0, print_chat, "The Server ip is 109.72.82.22:27022")
}
global:
new szIp
plugin_init
IP = register_cvar("amx_serverip", "IPORT")
new szIp[32]
get_pcvar_string(%s, szIp, charsmax(szIp))
The plugin does if you say /ip you see the server's ip but i want that you can change the ip/port that it says with a cvar.
some friends helped me with this but i still dont know how to fix this..
im new to scripting.

Thanks
fantarn is offline
 


Thread Tools
Display Modes

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 19:41.


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