13.08.2012, 00:19
Tu n copio o cуdigo ate o fim viu ^^, fica atento na hr de trocar..
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, ImagemEntrada); //aqui
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
new string[128];
new string3[128];
new ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
format(string3, sizeof(string3), "Banidos/%s.ini", PlayerName(playerid));
if(fexist(string3)) //autoban
{
ClearChatbox(playerid, 10);
strmid(BanInfo[playerid][pMotivo], dini_Get(string3,"Motivo"), 0, strlen(dini_Get(string3,"Motivo")), 255);
strmid(BanInfo[playerid][pAdmBan], dini_Get(string3,"Admin"), 0, strlen(dini_Get(string3,"Admin")), 255);
strmid(BanInfo[playerid][pData], dini_Get(string3,"Data"), 0, strlen(dini_Get(string3,"Data")), 255);
strmid(BanInfo[playerid][pHora], dini_Get(string3,"Hora"), 0, strlen(dini_Get(string3,"Hora")), 255);
MSGPLAYER(playerid, COLOR_GRAD2, "(=-=-=-=-=-=-=-=-=-==({F60000}Informaзхes do Ban{BFC0C2})=-=-=-=-=-=-=-=-=-==|");
format(string, sizeof(string), "Seu Nick:[%s] estб Banido do Brasil Tuning Life", PlayerName(playerid));
MSGPLAYER(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Motivo: %s", BanInfo[playerid][pMotivo]);
MSGPLAYER(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Admin: %s", BanInfo[playerid][pAdmBan]);
MSGPLAYER(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Dia: %s, Hora: %s", BanInfo[playerid][pData], BanInfo[playerid][pHora]);
MSGPLAYER(playerid, COLOR_YELLOW, string);
MSGPLAYER(playerid, COLOR_YELLOW, "Para revisгo de ban acesse nosso forum: http://brasiltuninglife.forumeiros.com/");
MSGPLAYER(playerid, COLOR_YELLOW, "Atenзгo: Vocк sу serб desbanido caso for inocente !");
new stri[64], tmp[20], tmp2[20];
format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
getdate(Ano, Mes, Dia);
format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano);
gettime(Hora, Minuto, Segundo);
format(tmp2, 20, "%d:%d:%d", Hora, Minuto, Segundo);
if(dini_Exists(stri))
{
Kick(playerid);
}
else
{
dini_Create(stri);
dini_Set(stri,"Motivo",BanInfo[playerid][pMotivo]);
dini_Set(stri,"Admin",BanInfo[playerid][pAdmBan]);
dini_Set(stri,"Data",BanInfo[playerid][pData]);
dini_Set(stri,"Hora",BanInfo[playerid][pHora]);
dini_Set(stri,"Nick",PlayerName(playerid));
}
Kick(playerid);
}
format(string3, sizeof(string3), "IPsBanidos/%s.ini", ip);
if(fexist(string3))
{
ClearChatbox(playerid, 10);
strmid(BanInfo[playerid][pMotivo], dini_Get(string3,"Motivo"), 0, strlen(dini_Get(string3,"Motivo")), 255);
strmid(BanInfo[playerid][pAdmBan], dini_Get(string3,"Admin"), 0, strlen(dini_Get(string3,"Admin")), 255);
strmid(BanInfo[playerid][pData], dini_Get(string3,"Data"), 0, strlen(dini_Get(string3,"Data")), 255);
strmid(BanInfo[playerid][pHora], dini_Get(string3,"Hora"), 0, strlen(dini_Get(string3,"Hora")), 255);
strmid(BanInfo[playerid][pNick], dini_Get(string3,"Nick"), 0, strlen(dini_Get(string3,"Nick")), 255);
MSGPLAYER(playerid, COLOR_GRAD2, "(=-=-=-=-=-=-=-=-=-==({F60000}Informaзхes do Ban{BFC0C2})=-=-=-=-=-=-=-=-=-==|");
format(string, sizeof(string), "Seu IP:[%s] estб Banido do Brasil Tuning Life", ip);
MSGPLAYER(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Motivo: %s", BanInfo[playerid][pMotivo]);
MSGPLAYER(playerid, COLOR_YELLOW, string);
if(strcmp(BanInfo[playerid][pNick],"", true ) == 0)
{
format(string, sizeof(string), "Admin: %s", BanInfo[playerid][pAdmBan]);
}
else