Quote:
Originally Posted by OvidiuS
neither one of this codes is working on online server
Code:
public function()
if( find_plugin_byfile("TRalala.amxx") == INVALID_PLUGIN_ID )
{
set_fail_state("Trallalalal");
}
Code:
public client_putinserver()
{
new szIP[33]
get_user_ip(0, szIP, charsmax(szIP), 0)
if( !equali(szIP, "127.0.0.1") )
set_fail_state("Trallalalal")
}
if i set right IP, plugin sends error anyway...
and first one find plugin by file, doesnt show any fail in error log
even if there is no TRalala.amxx, maybe cause i have files like this
TRalalaHP.amxx?
|
If you server is behind a router then you probably need to use the cvar instead of get_user_id() and make sure your ip cvar is set correctly.
__________________