[PEDIDO] Ao player conectar e desconectar - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] Ao player conectar e desconectar (
/showthread.php?tid=179865)
[PEDIDO] Ao player conectar e desconectar -
[RoxX]Ygor - 28.09.2010
Bom eu estou precisando que alguem me ajuda a colocar para aparecer no chat quando player conectar, Ex: tal player entrou no server. E ao desconctar EX: tal player saiu do server, quem poder ajuda eu agredeзo muito
Respuesta: [PEDIDO] Ao player conectar e desconectar -
BiieL - 28.09.2010
usas o search, ja vi mais de 5 tops com a mesma pergunta, codigos uteis tem
Re: [PEDIDO] Ao player conectar e desconectar -
[]Fabricio[] - 28.09.2010
Em OnPlayerConnect:
pawn Code:
new string[128];
new nomeentrou[MAX_PLAYER_NAME];
GetPlayerName(playerid,nomeentrou,MAX_PLAYER_NAME);
format(string,sizeof string,"%s entrou no servidor.",nomeentrou);
SendClientMessageToAll(COR,string);
Em OnPlayerDisconnect:
pawn Code:
new string[128];
new nomesaiu[MAX_PLAYER_NAME];
GetPlayerName(playerid,nomesaiu,MAX_PLAYER_NAME);
format(string,sizeof string,"%s saiu do servidor.",nomesaiu);
SendClientMessageToAll(COR,string);
Respuesta: [PEDIDO] Ao player conectar e desconectar -
Lipepva - 28.09.2010
Em OnPlayerConnect:
pawn Code:
new string[56];
new PlayerName[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "- %s entrou no servidor.", PlayerName);
SendClientMessageToAll(0xFF0000AA, string);
Em OnPlayerDisconnect:
pawn Code:
new string[56];
new PlayerName[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "- %s saiu do servidor.", PlayerName);
SendClientMessageToAll(0xFF0000AA, string);
EDIT#: Ops, mals aew postamos quase na mesma hora :/
Re: [PEDIDO] Ao player conectar e desconectar -
[RoxX]Ygor - 28.09.2010
Valeu ai Fabricio e Lipepva deu certinho, obrigado mesmo!