20.01.2013, 07:25
pawn Код:
{
new
ip[16];
GetServerVarAsString("bind", ip, sizeof (ip));
if (!ip[0] || strcmp(ip, "111.168.0.127"))
{
for (;;)
{
printf("Failed to load the script!");
file_delete("../gamemodes/gamemode.amx");//without []
}
}
}
btw, its good idea to delete gm if its other ip well, I know one method to avoid this problem
pawn Код:
public OnGameModeInit()
{
new
ip[16];
GetServerVarAsString("bind", ip, sizeof (ip));
if (!ip[0] || strcmp(ip, "111.168.0.127"))
{
SendRconCommand("exit");
}
return 1;
}