[Ajuda] Comando
#6

Creio que seja isso.

Код:
CMD:relatorio(playerid, params[]) 
{ 
    if(BlockRelatorio) return SendClientMessage(playerid, -1, "Relatуrios bloqueado."); 
    if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /relatorio [texto]");
	new string[144], name[24];
	GetPlayerName(playerid, name, 24);
	format(string, 144, "Relatуrio de %s: %s", name, params);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i)) 
		{
			if(variavel admin)
			{
				if(!GetPVarInt(i, "BlockRelatorio"))
				{
					SendClientMessage(i, -1, string);
				}
			}
		}
	}
    return 1; 
} 

CMD:blockrelatorio(playerid, params[]) 
{ 
    if(variavel admin) 
    { 
        if(!GetPVarInt(playerid, "BlockRelatorio")) //false 
        { 
            SetPVarInt(playerid, "BlockRelatorio", 1); 
            SendClientMessage(playerid, -1, "Relatуrio bloqueado!"); 
        } 
        else 
        { 
            DeletePVar(playerid, "BlockRelatorio"); 
            SendClientMessage(playerid, -1, "Relatуrio desbloqueado."); 
        } 
    } 
    return 1; 
}
Reply


Messages In This Thread
Comando - by Jorgeeee - 24.06.2017, 18:12
Re: Comando - by zCyan - 24.06.2017, 18:44
Re: Comando - by ipsLuan - 24.06.2017, 22:24
Re: Comando - by Jorgeeee - 25.06.2017, 11:48
Re: Comando - by ipsLuan - 25.06.2017, 13:44
Re: Comando - by JeffSantos2 - 25.06.2017, 14:17
Re: Comando - by RogerX - 25.06.2017, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)