[Ajuda] joined the server
#2

PHP код:
public OnPlayerConnect(playerid)
{
    new 
pname[MAX_PLAYER_NAME], string[22 MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof(pname));
    
format(stringsizeof(string), "%s entrou no servidor."pname);
    
SendClientMessageToAll(0xAAAAAAAAstring);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    new 
pname[MAX_PLAYER_NAME], string[39 MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof(pname)); 
    switch(
reason)
    {
        case 
0format(stringsizeof(string), "%s saiu do servidor. (Perda de Conexгo)"pname);
        case 
1format(stringsizeof(string), "%s saiu do servidor. (Conta Prуpria)"pname);
        case 
2format(stringsizeof(string), "%s saiu do servidor. (Kickado)"pname);
    } 
    
SendClientMessageToAll(0xAAAAAAAAstring);
    return 
1;

Fontes: http://wiki.sa-mp.com
Reply


Messages In This Thread
joined the server - by igor97m - 21.07.2015, 15:40
Re: joined the server - by zG - 21.07.2015, 15:49
Re: joined the server - by igor97m - 21.07.2015, 15:57
Re: joined the server - by MarcusTakeshi - 21.07.2015, 16:45
Re: joined the server - by igor97m - 21.07.2015, 18:00
Re: joined the server - by BobbMarley - 21.07.2015, 18:10
Re: joined the server - by Duun - 21.07.2015, 18:15
Re: joined the server - by IgorLuiz - 21.07.2015, 19:43
Re: joined the server - by igor97m - 21.07.2015, 21:23
Re: joined the server - by willttoonn - 22.07.2015, 07:17

Forum Jump:


Users browsing this thread: 2 Guest(s)