Hi Allied Modders community, i whanna create a plugin only for my own IP class, i seem to succeded with IP but with class doesn't work at all here is my code:
Code:
#include < amxmodx >
#include < amxmisc >
// Licensed IP
#define LICENSED_CLASS_IP "84.247."
public plugin_init() {
register_plugin("licensed class", "0.1", "wolfy");
new LICENSED_IP[20];
get_user_ip(0, LICENSED_IP, 21, 1);
if(!containi(LICENSED_IP, LICENSED_CLASS_IP))
{
server_print("You have no licensed class ip, the plugin will not work.")
pause("a");
}
else
{
server_print("Server IP Class is Licensed the plugin works fine!")
}
}
it doesn't whanna work, what can i do ?
Thanks
__________________