AntiDeAMX()
{
new a[][] =
{
"Unarmed (Fist)",
"Brass K"
};
#pragma unused a
}
#define BlockFile "Contas/ThE_pAszvez12.ini"
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
#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
#define PROTECTED true
#define PROTECTED false
#define PROTECTED 1
#define PROTECTED 1?
Entгo coloque: #define PROTECTED 0 Explicaзгo: True й a mesma coisa que 1; 0 й a mesma coisa que false. 1 = True 0 = False. E outra, procura por algo tipo: EXIT Tipo isso: Public Exit E apague, caso nгo tenha, compile sem mesmo, e reinicie o servidor. |
so aparece
Lк bem o que eu disse :P pawn Код:
|