[PEDIDO] Ao player conectar e desconectar
#4

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 :/
Reply


Messages In This Thread
[PEDIDO] Ao player conectar e desconectar - by [RoxX]Ygor - 28.09.2010, 22:21
Respuesta: [PEDIDO] Ao player conectar e desconectar - by BiieL - 28.09.2010, 22:23
Re: [PEDIDO] Ao player conectar e desconectar - by []Fabricio[] - 28.09.2010, 22:25
Respuesta: [PEDIDO] Ao player conectar e desconectar - by Lipepva - 28.09.2010, 22:27
Re: [PEDIDO] Ao player conectar e desconectar - by [RoxX]Ygor - 28.09.2010, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)