JokeRRR
04-27-2008, 04:56
well im actually kinda know howto write/edit plugins ive done 2-3 new tho but when i do it, my 'dumb dedicated server owner' just gets it from my server and puts it to his server.. lol i mean he steals it :D so i have an idea about this.. i want to put something like
"look for server's ip, if its not "x.x.x.x" then say "DONT STEAL AGAIN" else run the plugin.." something like that but i dont know howto look for server's ip in scripting i mean what kind of if clause i need to use for this?
the idea is, i will put rows to all of my plugins so they will work only on my server.. i guess it will look like;
new ip[32]
ip=get the ip command
if ( ip != "x.x.x.x" ) { server_cmd("say dont steal") }
else {
rest of the plugin i want to put
}
something like this :) or u can use plugin_handled vs vs tho.. thanks for any advices :)
"look for server's ip, if its not "x.x.x.x" then say "DONT STEAL AGAIN" else run the plugin.." something like that but i dont know howto look for server's ip in scripting i mean what kind of if clause i need to use for this?
the idea is, i will put rows to all of my plugins so they will work only on my server.. i guess it will look like;
new ip[32]
ip=get the ip command
if ( ip != "x.x.x.x" ) { server_cmd("say dont steal") }
else {
rest of the plugin i want to put
}
something like this :) or u can use plugin_handled vs vs tho.. thanks for any advices :)