Raised This Month: $ Target: $400
 0% 

Licensed Class


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 04-21-2012 , 04:21   Licensed Class
Reply With Quote #1

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
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 04-21-2012 at 04:22.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
 


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 07:48.


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