15.02.2014, 23:56
Como tirar protecзгo do gamemode playhard? ao ligar diz que nгo tenho permissгo para ligar, vou ao gm encontro isto
alguem me ajuda?
pawn Код:
AntiDeAMX()
{
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
#pragma unused a
}
#define BlockFile "Contas/ThE_pAszvez12.ini"
pawn Код:
public OnGameModeInit()
{
AntiDeAMX();
#if PROTECTED == 1
{
new ServerIP[20], ServerPort;
GetServerVarAsString("bind",ServerIP,20);
ServerPort = GetServerVarAsInt("port");
if(strcmp(ServerIP,PROTECTED_IP,false) != 0 || !strlen(ServerIP)) // Check server IP.
{
print("1This server has not the permission to use this gamemode..");
print("Server shutting down in 5 seconds");
SetTimer("Exit",5000,false);
return 0;
}
else if(ServerPort != PROTECTED_PORT) // If server port is different, end server.
{
print("2This server has not the permission to use this gamemode.");
print("Server shutting down in 5 seconds");
SetTimer("Exit",5000,false);
return 0;
}
}
#endif