Quando conecta...
OnPlayerConnect do GameMode.
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerTeam(playerid,NO_TEAM);
SetPlayerVirtualWorldEx(playerid, 0);
pDataGM[playerid][gLevel] = 0;
pDataGM[playerid][pGang] = 0;
pDataGM[playerid][pAliado] = 0; // GANG ALIADA
pDataGM[playerid][pInimigo] = 0; // GANG INIMIGA
pDataGM[playerid][pDM] = false;
pDataGM[playerid][Restaurar] = false;
pDataGM[playerid][pLocal] = random(4);
pDataGM[playerid][pTeam] = NO_TEAM;
pDataGM[playerid][IDGPS] = INVALID_PLAYER_ID;
pDataGM[playerid][pCor01] = pColors01[playerid];
pDataGM[playerid][pCor02] = pColors02[playerid];
SetPlayerColor(playerid,pDataGM[playerid][pCor01]); // COR
TextDrawShowForPlayer(playerid, sDataGM[Fundo]);
TextDrawShowForPlayer(playerid, sDataGM[NomeServer]);
TextDrawShowForPlayer(playerid, sDataGM[Comandos]);
TextDrawShowForPlayer(playerid, sDataGM[Hora]);
TextDrawShowForPlayer(playerid, pDataGM[playerid][InfoText]);
TextDrawHideForPlayer(playerid, pDataGM[playerid][GPSText]);
TextDrawHideForPlayer(playerid, sDataGM[GangZonaInfo]);
for (new i = 0; i < MAX_GANG_ZONAS; i++)
{
TextDrawHideForPlayer(playerid, gAtacando[i]);
GangZoneShowForPlayer(playerid, GangZonasCriadas[i], gZonasLV[i][5]);
if (gZonasLV[i][6] == 1) GangZoneFlashForPlayer(playerid, GangZonasCriadas[i], ZONAS_PISCAR);
}
for (new i = 0; i < MAX_BASES; i++) // BASES
{
GangZoneShowForPlayer(playerid, BasesCriadas[i], BasesInfo[i][8]);
GangZoneFlashForPlayer(playerid, BasesCriadas[i], BASES_PISCAR);
}
/* for (new o = 0; o < MAX_BASES; o++) // BASES
{
GangZoneShowForPlayer(playerid, BasesCriadasDona[o], BasesInfoDona[o][8]);
GangZoneFlashForPlayer(playerid, BasesCriadasDona[o], BASES_PISCAR);
}*/
for (new x = 0; x < MAX_PROP; x++) if (PropData[x][4] == playerid) PropData[x][4] = INVALID_PLAYER_ID;
return 1;
}
OnPlayerConnect do FilterScript [Servidor sу pega com esse FilterScript, pois ele й ъnico que se adapta com o GameMode...]
pawn Код:
public OnPlayerConnect
(playerid
){ new namecon
[MAX_PLAYER_NAME
]; GetPlayerName
(playerid,namecon,MAX_PLAYER_NAME
);
new namebank
[MAX_PLAYER_NAME
]; GetPlayerName
(playerid,namebank,MAX_PLAYER_NAME
);
// new strmor[128]; if (!strcmp("aux", namecon, true
) ||
!strcmp("con", namecon, true
) ||
!strcmp("com1", namecon, true
)) { SetPlayerName
(playerid,
"NAO_DA_MAIS");
SendClientMessageToAll
(COR_VERMELHA,
"|| O administrador BOT baniu um jogador com nick proibido");
Ban
(playerid
);
return 1;
} if (!strcmp("banco", namebank, true
) ||
!strcmp("bank", namebank, true
)) { SetPlayerName
(playerid,
"NOME_PROIBIDO_BANCO");
SendClientMessage
(playerid, COR_VERMELHA,
"|| Contas de bancos sгo proibidas, vocк estб sendo kickado pelo mesmo.");
Kick
(playerid
);
return 1;
} __
[playerid
] = TextDrawCreate
(340,
355,
"-");
TextDrawAlignment
(__
[playerid
],
0);
TextDrawBackgroundColor
(__
[playerid
],0x000000ff
);
TextDrawFont
(__
[playerid
],
2);
TextDrawLetterSize
(__
[playerid
],
0.3,
1.100000);
TextDrawColor
(__
[playerid
],0xffffffff
);
TextDrawSetOutline
(__
[playerid
],
1);
TextDrawSetProportional
(__
[playerid
],
1);
TextDrawSetShadow
(__
[playerid
],
1);
___
[playerid
] = TextDrawCreate
(330,
205,
"-");
TextDrawAlignment
(___
[playerid
],
0);
TextDrawBackgroundColor
(___
[playerid
],0x000000ff
);
TextDrawFont
(___
[playerid
],
2);
TextDrawLetterSize
(___
[playerid
],
0.2,
0.85);
TextDrawColor
(___
[playerid
],0xffffffff
);
TextDrawSetOutline
(___
[playerid
],
1);
TextDrawSetProportional
(___
[playerid
],
1);
TextDrawSetShadow
(___
[playerid
],
1);
new tmp3
[20], strcon
[128]; GetPlayerIp
(playerid,tmp3,
20);
if (strlen(dini_Get
("controle/fake.reg", tmp3
)) == 0) dini_Set
("controle/fake.reg", tmp3, namecon
);
else if (strfind(dini_Get
("controle/fake.reg", tmp3
), namecon, true
) == -1) { format(strcon,
sizeof(strcon
),
"%s %s", dini_Get
("controle/fake.reg",tmp3
), namecon
);
dini_Set
("controle/fake.reg", tmp3, strcon
);
} pDataInfo
[playerid
][Registrado
] = false;
pDataInfo
[playerid
][Logado
] = false;
pDataInfo
[playerid
][Spawned
] = false;
pDataInfo
[playerid
][InInt
] = false;
pDataInfo
[playerid
][Level
] = 0;
pDataInfo
[playerid
][SenhaErrada
] = 0;
if (bd_ler_int
(namecon,
"NickBanido") == 1) { format(strcon,
128,
"|| %s(%d) foi kickado pelo administrador BOT [motivo: nick banido]", namecon, playerid
); ModeloDesban
(playerid,strcon,
2);
return 0;
} if (bd_ler_int
(namecon,
"Banido") == 1) { format(strcon,
128,
"|| %s(%d) foi kickado pelo administrador BOT [motivo: conta banida]", namecon, playerid
); ModeloDesban
(playerid,strcon,
2);
return 0;
} if (bd_ler_int
(namecon,
"BanidoTemp") == 1) { new arqui
[40];
format(arqui,
40,
"controle/temporizador.reg");
new TempoBanido
= bd_ler_int
(namecon,
"BanidoTempoCont") - dini_Int
(arqui,
"TimerCont");
if (bd_ler_int
(namecon,
"BanidoTempoCont") == 0) { format(strcon,
128,
"|| %s(%d) foi kickado pelo administrador BOT [motivo: tempban, procure o forum]", namecon, playerid
);
SendClientMessageToAll
(COR_VERMELHA, strcon
);
return Kick
(playerid
);
} if (TempoBanido
<= 0) { format(strcon,
128,
"|| %s(%d) foi desbanido pelo administrador BOT [motivo: tempban finalizado]", namecon, playerid
);
bd_escrever_int
(namecon,
"Banido",
0); bd_escrever_int
(namecon,
"BanidoTempoCont",
0); bd_escrever_int
(namecon,
"BanidoTemp",
0);
SendClientMessageToAll
(COR_VERMELHA, strcon
);
} else { format(strcon,
128,
"|| %s(%d) foi kickado pelo administrador BOT [motivo: tempban por mais %0.2f horas]", namecon, playerid,
floatdiv(TempoBanido,
60));
SendClientMessageToAll
(COR_VERMELHA, strcon
);
return Kick
(playerid
);
} } if (IsPlayerConnected
(playerid
)) { format(strcon,
sizeof(strcon
),
"|| %s(%d) se logou no servidor. :D", namecon, playerid
);
SendClientMessageToAll
(COR_CINZA, strcon
);
} if (bd_existe_usuario
(namecon
)) { pDataInfo
[playerid
][Registrado
] = true;
} else { pDataInfo
[playerid
][Registrado
] = false;
} for (new x
= 0; x
< 5; x
++) SendClientMessage
(playerid, COR_BRANCA,
" ");
SendClientMessage
(playerid, 0x90F9FFAA,
"Seja Bem-Vindo a Elite X-TreMe SA:MP [DM]");
SendClientMessage
(playerid, COR_AMARELA,
"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
SendClientMessage
(playerid, 0xFF0000AA,
"|| Criadores: BurnouT | KaNiBaL | Marcelo | WolF | Fabrнcio Loechner");
SendClientMessage
(playerid, 0xFFC0CBAA,
"|| Atualizaзхes, mapas e scripts: KaNiBaL | Marcelo | Ice");
SendClientMessage
(playerid, 0x008080AA,
"|| Agradecimentos: SA:MPHosting.net | Bots-Commander.");
SendClientMessage
(playerid, 0x38F709AA,
"|| Dъvidas, sugestхes, crнticas... Acesse nosso fуrum www.xtreme.forumais.com/");
SendClientMessage
(playerid, COR_LARANJA,
"|| Use /admins para ver os admins online, use /ajuda para nгo se perder no jogo!");
SendClientMessage
(playerid, 0xCD00CDAA,
"|| Este servidor possui forte administraзгo contra Xiters, reporte eles! /report");
SendClientMessage
(playerid, 0x004DFFAA,
"|| Temos mais servidores SA:MP, confira-os em nosso fуrum: www.xtreme.forumais.com");
SendClientMessage
(playerid, 0xFFFF00AA,
"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
SendClientMessage
(playerid, 0x90F9FFAA,
"Tenha um bom jogo, divirta-se!");
return 1;
}
Tenho quase certeza que este problema seja no OnPlayerConnect do FS...