[Pedido] Como eu crio comando sem Barra?
#3

PHP код:
public OnPlayerText(playerid, text[])
{
    new 
string[128];
    if(
text[0] == '#') // Utilizando o sнmbolo "#"
    
{
        
// condiзгo
        
{ // Funзгo abaixo, no caso, uma mensagem
            
for(new i; i < MAX_PLAYERS; i++) // loop
            
{
                
format(string, sizeof(string),"Usuario %s: %s", nome, text[1]); // substitua "nome" por sua variavel
                
SendClientMessage(i, -1, string); // Mensagem para um grupo
            
}
        }
        return 
0;
    }
    return 
0;
} 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)