26.08.2015, 02:31
CAR_RESPAW
CAR_AMOUNT
public OnGameModeInit
postar tudo que tem dentro da public ou sу isso ai?
public OnPlayerConnect
PHP код:
#define CAR_RESPAW 1283 // menos 1 do CAR_AMOUNT
PHP код:
#define CAR_AMOUNT 1284 // TODOS OS CARROS + 1
PHP код:
public OnGameModeInit()
{
CHitman = 0;
CAssassins = 0;
XiterCbug = 0;
getdate(v[0], v[1], v[2]);
gettime(v[3], v[4], v[5]);
print("\n---------------------------------------------------------");
printf("Server Ligado: [%02d/%02d/%d %02d:%02d:%02d]", v[2], v[1], v[0], v[3], v[4], v[5]);
print("---------------------------------------------------------\n");
SetHora();
print("-----------------------------");
print(" GM by : Igor_Maicon");
print("-----------------------------");
//=====================================[INFOORG]================================//
LoadOrgs();
//==============================================================================//
LoadTrunk();
LoadGays();
CarregarAdmins();
LoadVip();
skinlist = LoadModelSelectionMenu("skins.txt");
SendRconCommand("rcon 0");
public OnPlayerConnect
PHP код:
public OnPlayerConnect(playerid)
{
new connecting_ip[32+1];
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
IPlog(playerid);
SetPVarInt(playerid, "laser", 0);
SetPVarInt(playerid, "color", 18643);
GetPlayerIp(playerid,connecting_ip,32);
PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/vxfsnx90vyt2tjj/entrada.mp3");
SetTimerEx("Payday", 60, true, "i", playerid);
if(num_players_on_ip > CONEXOES_IP)
{
printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, CONEXOES_IP, connecting_ip);
Kick(playerid);
return 1;
}
if(strfind(PlayerName(playerid), "_", true) == -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "]", true) != -1 || strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1 || strfind(PlayerName(playerid), "iHarDz", true) != -1
|| strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "bpl", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ".", true) != -1
|| strfind(PlayerName(playerid), "*", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1 || strfind(PlayerName(playerid), "HAX4", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Foi Kickado por usar algum nome incorreto!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu nome deve ser no formato Nome_Sobrenome Ex: Guru_Josh");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Troque-o e volte, Obrigado.");
format(gstring,64,"Players/%s.ini",PlayerName(playerid));
Kick(playerid);
fremove(gstring);
return 1;
}