|
Author
|
Message
|
|
Senior Member
|

08-08-2010
, 02:21
Re: Best plugin protection
|
#1
|
1) This code isnt working.
2) I need to check domain, not ip. (if server domain is cs.domain.lv)
3) And how to check servername?
new ip[16], port[8]
new komplet[30]
get_cvar_string("ip", ip, charsmax )
get_cvar_string("port", port, charsmax(port))
format(komplet,charsmax(komplet), "%s:%s", ip, port)......
....................
..........................
{
if (equal ( komplet, "213.213.213:27015"))
return PLUGIN_CONTINUE
{
else
{
set_fail_state ( "Illegal USE")
}
|
|
|
|