[Ajuda] /duvida
#5

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext,"/relatorio"true) == 0)
    {
        new 
texto=strval(cmdtext);
        new 
string[256];
        static 
nome[24];
        
GetPlayerName(playeridnome24);
        if(!
strlen(cmdtext))return SendClientMessage(playerid, -1"Use: /relatorio [Texto]");
        else
        {
            
            
format(string,256,"[Relatorio] %s: %s",nome,texto);
            
MensagemParaAdmin(-1,string);
        }
        return 
1;
    }
    return 
0;
}
forward MensagemParaAdmin(color,const string[]);
public 
MensagemParaAdmin(color,const string[])
{
    for(new 
0<= MAX_PLAYERSi++)
    {
        
        if(
IsPlayerConnected(i))
        {
            
            if(
IsPlayerAdmin(i))
            {
                
                
SendClientMessage(icolorstring);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
/duvida - by VF46 - 24.01.2018, 21:26
Re: /duvida - by Marllun - 24.01.2018, 21:42
Re: /duvida - by humildadeforever - 24.01.2018, 22:03
Re: /duvida - by VF46 - 24.01.2018, 23:00
Re: /duvida - by Marllun - 24.01.2018, 23:06
Re: /duvida - by VF46 - 24.01.2018, 23:33
Re: /duvida - by FerrariL - 25.01.2018, 01:28
Re: /duvida - by VF46 - 25.01.2018, 01:51
Re: /duvida - by Luiiiz - 25.01.2018, 14:33
Re: /duvida - by FerrariL - 25.01.2018, 18:06

Forum Jump:


Users browsing this thread: 2 Guest(s)