Tou guardando as player text draw em forwards assim organizando mais, quando tiver terminado eu posto aqui e vocкs dao uma olhada para ver se tem algum bug ? Oukein ?
pawn Код:
public OnPlayerConnect
(playerid
){ //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Chamar CallBacks ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤// LoadTextsDraws
(playerid
);
RemoverObjetos
(playerid
);
MostrarGangZones
(playerid
);
//¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Carregar Text Draws ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤// TextDrawShowForPlayer
(playerid, ImagemEntrada
);
format(gString,
sizeof(gString
),
"%s", ImagensEntrada
[random(sizeof(ImagensEntrada
))]);
TextDrawSetString
(ImagemEntrada, gString
);
TextDrawShowForPlayer
(playerid, Icone1
);
TextDrawShowForPlayer
(playerid, Icone2
);
TextDrawShowForPlayer
(playerid, Icone3
);
TextDrawShowForPlayer
(playerid, Icone4
);
TextDrawShowForPlayer
(playerid, Icone5
);
TextDrawShowForPlayer
(playerid, Icone6
);
TextDrawShowForPlayer
(playerid, Icone7
);
TextDrawShowForPlayer
(playerid, Icone8
);
TextDrawShowForPlayer
(playerid, informacoes
);
TextDrawShowForPlayer
(playerid, Principal
);
TextDrawShowForPlayer
(playerid, txtTimeDisp
);
TextDrawShowForPlayer
(playerid, txtDateDisp
);
TextDrawShowForPlayer
(playerid, NomeDoSv
);
TextDrawShowForPlayer
(playerid, ForumTextDraw
);
//¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Informaзхes Connect ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤// new IS
[400];
strcat(IS,
"{FF0000}BRASIL MATA-MATA 2013! GUERRA EM SAN FIERRO!\n");
strcat(IS,
"{FFFFFF}Jogue conosco todos os dias!\n");
strcat(IS,
"{FFFFFF}Adicione nosso {00FF00}IP {FFFFFF}aos favoritos.\n");
strcat(IS,
"{FFFFFF}IP: {00FF00}216.245.195.188:7780\n");
strcat(IS,
"{BEBEBE}Sempre esteja atento бs {00FF00}/Regras\n");
ShowPlayerDialog
(playerid, DIALOG_AVISOS, DIALOG_STYLE_MSGBOX,
"{00FF00}» ORIGINAL BRASIL MATA-MATA!", IS,
"Jogar",
"");
// /**************************************************************************/ new ipdop
[50]; GetPlayerIp
(playerid, ipdop,
50);
format(gString,
sizeof(gString
),
"~» %s entrou no servidor. [{FFFFFF}ID: %d{BEBEBE}][{FFFFFF}IP: %s{BEBEBE}]", nome
(playerid
), playerid, ipdop
);
SendClientMessageToAll
(cinza, gString
);
for(new i; i
!= 10;
++i
){ SendClientMessage
(playerid, verde,
" ");
} SendClientMessage
(playerid, verde,
"======================================================================================");
SendClientMessage
(playerid, verde,
" ");
SendClientMessage
(playerid, red,
" BRASIL MATA-MATA 2013! GUERRA EM SAN FIERRO! ®");
SendClientMessage
(playerid, verde,
" ");
SendClientMessage
(playerid, red,
" Para uma ajuda inicial digite /Ajuda ou /Comandos");
SendClientMessage
(playerid, verde,
" ");
SendClientMessage
(playerid, red,
" Nosso score й a sua diversгo Online !");
SendClientMessage
(playerid, verde,
" ");
SendClientMessage
(playerid, verde,
"======================================================================================");
SendClientMessage
(playerid, verde,
" ");
/**************************************************************************/ /*new EntradaBox[1500];
strcat(EntradaBox,"{00EEFF}BRASIL MATA-MATA 2013! GUERRA EM SAN FIERRO!\n\n");
strcat(EntradaBox,"{00FF00}Regras do servidor:\n\n");
strcat(EntradaBox,"{FF0000}1Є - O uso de Xiter/Cheater й expressamente proнbido. {FFFFFF}Puniзгo: {FFA500}Ban.\n\n");
strcat(EntradaBox,"{6F00DD}2Є - Й proнbido ofender Jogadores/Admins. {FFFFFF}Puniзгo: {FFA500}Aviso/Kick.\n");
strcat(EntradaBox,"{6F00DD}3Є - Nгo use comandos que lhe deem vantagem em algum duelo. {FFFFFF}Puniзгo: {FFA500}Aviso/Kick\n");
strcat(EntradaBox,"{6F00DD}4Є - Para criar clгns, й necessбrio falar com algum admin que esteja nos /creditos. {FFFFFF}Puniзгo: {FFA500}Kick\n");
strcat(EntradaBox,"{6F00DD}5Є - Se algum admin lhe abusou, crie um tуpico na бrea 'Deuncias' no fуrum que estarб no final desta lista. {FFFFFF}Puniзгo: {FFA500}-1 nivel de admin.\n");
strcat(EntradaBox,"{6F00DD}6Є - Nгo chingue o servidor, se nгo gostou dele, dк dicas no fуrum. {FFFFFF}Puniзгo: {FFA500}Kick/Ban\n");
strcat(EntradaBox,"{6F00DD}7Є - Nгo cometer racismo ou algo do tipo {FFFFFF}Puniзгo: {FFA500}Aviso/Kick\n");
strcat(EntradaBox,"{6F00DD}8Є - Nгo causar discossхes, causar polкmica, utilizar nicks inadequados. {FFFFFF}Puniзгo: {FFA500}Aviso/Kick\n");
strcat(EntradaBox,"{6F00DD}9Є - Nгo perturbar os Admins. {FFFFFF}Puniзгo: {FFA500}Aviso/Kick\n");
strcat(EntradaBox,"{6F00DD}10Є - Nгo questionar as atitudes de um Admin. {FFFFFF}Puniзгo: {FFA500}Aviso/Kick\n\n\n");
strcat(EntradaBox,"{FF0000}Fуrum do servidor: www.originalgsf.forumeiros.com\n\n");
strcat(EntradaBox,"{6F00DD}Regras foram feitas para serem cumpridas, quem nгo as cumpre nгo merece jogar conosco.\n");
strcat(EntradaBox,"{6F00DD}A nossa equipe lhe deseja um Bom jogo !\n");
ShowPlayerDialog(playerid,DIALOG_EntradaBox, DIALOG_STYLE_MSGBOX, "{00FF00}Regras do servidor", EntradaBox, "Jogar", "");*/ //•••...••• new gStringBanIP
[128],
connecting_ip
[32+1];
GetPlayerIp
(playerid,connecting_ip,
32);
new num_players_on_ip
= GetNumberOfPlayersOnThisIP
(connecting_ip
);
if(num_players_on_ip
> MAX_CONNECTIONS_FROM_IP
) { format(gStringBanIP,
sizeof(gStringBanIP
),
"[ANTI-BOOT]: %s exedeu o mбximo de conexхes por IP (%s) e foi banido. [IP: %s]", nome
(playerid
), MAX_CONNECTIONS_FROM_IP, connecting_ip
);
SendClientMessageToAll
(red, gStringBanIP
);
BanEx
(playerid,
"Excessгo de Conexхes por IP");
Ban
(playerid
);
} //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Formataзгo das Variaveis ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤// Spree
[playerid
] = 0;
Shoots
[playerid
] = 0;
Exp
[playerid
] = 0;
Morreull
[playerid
] = 0;
AutoReparar
[playerid
] = 0;
TaNoX1
[playerid
] = 0;
Matoull
[playerid
] = 0;
ColeteJFS
[playerid
] = 1;
// format(String,
sizeof(String
),
"LLADMIN/AdminsTemp/%s.txt", Nome
(playerid
));
if(DOF2_FileExists
(String
)) { if(DOF2_GetInt
(String,
"TempoAdmin")) { if(gettime() >= PlayerDados
[playerid
][TempoAdmin
]) { SendClientMessage
(playerid, verde,
"[INFO]: Seu Admin Expirou!");
PlayerDados
[playerid
][Admin
] = 0;
PlayerDados
[playerid
][TempoAdmin
] = 0;
} PlayerDados
[playerid
][Admin
] = DOF2_GetInt
(String,
"Nivel");
PlayerDados
[playerid
][TempoAdmin
] = DOF2_GetInt
(String,
"TempoAdmin");
} } format(AT,
sizeof(AT
),
"AdminsTemp/%s.ini", Nome
(playerid
));
if(DOF2_FileExists
(AT
)) { AdminTemp
[playerid
] = 1;
} PlayerPlaySound
(playerid,
1057,
0.0,
0.0,
0.0);
format(gString,
sizeof(gString
),
"%s", MusicasEntrada
[random(sizeof(MusicasEntrada
))]);
PlayAudioStreamForPlayer
(playerid, gString
);
if(playerid
> EventoID
) EventoID
= playerid;
//((((((((((((((((((((((((( Sistema de Administraзгo )))))))))))))))))))))// if(strfind(Nome
(playerid
),
"clock$",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"prn",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Carl",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"con",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"SgtPepper",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Pepe",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"nul",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Pepno",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Pepsi",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Rocky",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Carl",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Vino_Toro",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Zoquete",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"AquilesBrinco",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Azucar",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Manfrey",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Papirola",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"[ViP]Labrik",true
) != -1)Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Sony",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Pacman",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"Batman",true
) != -1)Ban
(playerid
);
if(strfind(Nome
(playerid
),
"aux",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com1",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com2",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com3",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com4",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com5",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com6",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com7",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com8",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"com9",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt1",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt2",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt3",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt4",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt5",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt6",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt8",true
) != -1) Ban
(playerid
);
if(strfind(Nome
(playerid
),
"lpt9",true
) != -1) Ban
(playerid
);
Pergunta
[playerid
] = "Nenhuma";
SetTimerEx
("TocarSom",
1000, false,
"i", playerid
);
PlayersOnline
++;
PlayerDados
[playerid
][Logado
] = false;
PlayerDados
[playerid
][Admin
] = 0;
PlayerDados
[playerid
][Helper
] = false;
PlayerDados
[playerid
][Vip
] = false;
new strConta
[80];
new Ip
[25];
format(strConta,
sizeof(strConta
),
"LLADMIN/Banidos/Contas/%s.txt", Nome
(playerid
));
if(DOF2_FileExists
(strConta
)) { format(String,
sizeof(String
),
"{FFFFFF}Vocк estб banido deste servidor!\n\n Dados do Banimento:\n\n{45F75A}Admin: {FFFFFF}%s \n{45F75A}Motivo: {FFFFFF}%s", DOF2_GetString
(strConta,
"Admin"), DOF2_GetString
(strConta,
"Motivo"));
format(String,
sizeof(String
),
"%s\n{45F75A}Data: {FFFFFF}%d/%d/%d \n{45F75A}Hora: {FFFFFF}%d:%d", String, DOF2_GetInt
(strConta,
"Dia"), DOF2_GetInt
(strConta,
"Mes"), DOF2_GetInt
(strConta,
"Ano"), DOF2_GetInt
(strConta,
"Hora"), DOF2_GetInt
(strConta,
"Minuto"));
ShowPlayerDialog
(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX,
"Banido!", String,
"Fechar",
"");
return 1;
} GetPlayerIp
(playerid, Ip,
25);
if(strcmp(Ip ,
"255.255.255.255", true
) == 0) { Ban
(playerid
);
} if(DOF2_IsSet
("LLADMIN/Banidos/Ips.txt", Ip
)) { format(String,
sizeof(String
),
"{FFFFFF} Seu IP estб banido deste Servidor !\n\nDados:\nIP:%s\n%s", Ip, DOF2_GetString
("LLADMIN/Banidos/Ips.txt", Ip
));
ShowPlayerDialog
(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX,
"Banido!", String,
"Fechar",
"");
BanEx
(playerid,
"IP ja Banido! ( Tentativa de re-entrar)");
Ban
(playerid
);
return 1;
} if(DOF2_IsSet
("LLADMIN/Fodidos.txt", Ip
)) { SetTimerEx
("FoderSpawn",
1000, false,
"i", playerid
);
return 1;
} return 1;
}