SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 28/09/2010, 10:21 PM   #1
[RoxX]Ygor
Huge Clucker
 
[RoxX]Ygor's Avatar
 
Join Date: Aug 2010
Posts: 223
Reputation: 2
Default [PEDIDO] Ao player conectar e desconectar

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
[RoxX]Ygor is offline   Reply With Quote
Old 28/09/2010, 10:23 PM   #2
BiieL
High-roller
 
BiieL's Avatar
 
Join Date: May 2010
Location: Fim de Mundo
Posts: 1,236
Reputation: 2
Default Respuesta: [PEDIDO] Ao player conectar e desconectar

usas o search, ja vi mais de 5 tops com a mesma pergunta, codigos uteis tem
__________________
BiieL is offline   Reply With Quote
Old 28/09/2010, 10:25 PM   #3
[]Fabricio[]
Big Clucker
 
[]Fabricio[]'s Avatar
 
Join Date: Aug 2010
Posts: 115
Reputation: 0
Default Re: [PEDIDO] Ao player conectar e desconectar

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);
[]Fabricio[] is offline   Reply With Quote
Old 28/09/2010, 10:27 PM   #4
Lipepva
Big Clucker
 
Lipepva's Avatar
 
Join Date: Apr 2010
Posts: 193
Reputation: 1
Default Respuesta: [PEDIDO] Ao player conectar e desconectar

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 :/
Lipepva is offline   Reply With Quote
Old 28/09/2010, 10:37 PM   #5
[RoxX]Ygor
Huge Clucker
 
[RoxX]Ygor's Avatar
 
Join Date: Aug 2010
Posts: 223
Reputation: 2
Default Re: [PEDIDO] Ao player conectar e desconectar

Valeu ai Fabricio e Lipepva deu certinho, obrigado mesmo!
[RoxX]Ygor is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pedido setar senha para um so player!!! lucas_mdr1235 Português/Portuguese 2 23/09/2010 10:33 PM
[Pedido] Votação ao conectar blackscripter Português/Portuguese 3 30/07/2010 04:08 PM
[PEDIDO] Quando o player fala brundavid Português/Portuguese 3 25/07/2010 07:20 PM
Ao dar /sos (restart) desconectar todos os jogadores Amendoim Português/Portuguese 6 23/07/2010 02:38 PM


All times are GMT. The time now is 05:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.