26.11.2011, 14:37
Define your server IP in your script and retrieve the IP using GetServerVarAsString() then compare it, and if it's incorrect then shut the server down. I think this is how I done it, I remember using it in all of the vxrp modes and the one time the server was hacked, they got away with nothing except an AMX that'd print 1,000 times and delete itself.
Try again with the GetServerVarAsString method?
I remember in 'project salad' (the carlitos version of vxrp) in 2009, I found some code on the forums by ****** and added it:
BIND is a define at the top of the script.
Try again with the GetServerVarAsString method?
I remember in 'project salad' (the carlitos version of vxrp) in 2009, I found some code on the forums by ****** and added it:
pawn Код:
new ip[16];
GetServerVarAsString("bind", ip, sizeof(ip));
if (!ip[0] || strcmp(ip, BIND))
{
for (;;)
{
print("[SERVER] Unable to continue, the server's bind doesn't match the defined one.");
}
}