[Pedido] Comando para Falar chat Global
#2

PHP код:
public OnPlayerText(playeridtext[])
{
    static 
Str[128];
    
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNameMAX_PLAYER_NAME);
    
format(Strsizeof Str"%s[%d] diz: %s"Nameplayeridtext);
    
SendClientMessageToAll(-1Str);
    return 
0;
}
CMD:chatglobal(playeridchat[])
{
    if(
isnull(chat))
        return 
SendClientMessage(playerid, -1"USE: /chatglobal [Texto]");
        
    new
        
Str[128],
        
Name[MAX_PLAYER_NAME]
    ;
    
GetPlayerName(playeridNameMAX_PLAYER_NAME);
    
format(Strsizeof Str"[Chat Global] %s[%d]: %s"Nameplayeridchat);
    
SendClientMessageToAll(-1Str);
    return 
1234;
}
//Caso nгo tenha:
#if !defined isnull
    #define isnull(%1) \
                
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif 
Reply


Messages In This Thread
Comando para Falar chat Global - by uliano - 08.04.2018, 20:05
Re: Comando para Falar chat Global - by XandyMello - 08.04.2018, 20:37
Re: Comando para Falar chat Global - by ThiagoScottish - 08.04.2018, 20:43
Re: Comando para Falar chat Global - by uliano - 08.04.2018, 21:23
Re: Comando para Falar chat Global - by XandyMello - 08.04.2018, 21:32
Re: Comando para Falar chat Global - by ThiagoScottish - 08.04.2018, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)