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", "IP ORT")
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