[Pedido] Chat de Novato
#7

PHP код:
CMD:cn(playeridparams[])
{
    if(
GetPlayerScore(playerid) > 20) return SendClientMessage(playerid0xFF0000FF"| ERRO | Vocк possui mais de 20 scores");
    new 
str[144];
    if(
sscanf(params"s[128]"str)) return SendClientMessage(playerid0xFF0000FF"Uso: /cn [Mensagem]");
    
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(strsizeof(str), "[Chat-Novato] %s (%i): %s"nameplayeridstr);
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i) && GetPlayerScore(i) <= 20)
        {
            
SendClientMessage(i, -1str);
        }
    }
    return 
1;

Reply


Messages In This Thread
Chat de Novato - by SrVinnyh - 19.07.2017, 21:19
Re: Chat de Novato - by Bieell - 19.07.2017, 22:05
Re: Chat de Novato - by SrVinnyh - 20.07.2017, 01:29
Re: Chat de Novato - by WalterSantos - 20.07.2017, 01:45
Re: Chat de Novato - by MrEdu - 20.07.2017, 02:11
Re: Chat de Novato - by SrVinnyh - 20.07.2017, 04:09
Re: Chat de Novato - by RodrigoMSR - 20.07.2017, 05:12
Re: Chat de Novato - by TheusCrazzy - 20.07.2017, 05:24
Re: Chat de Novato - by Bruno13 - 20.07.2017, 05:29
Re: Chat de Novato - by SrVinnyh - 22.07.2017, 17:26

Forum Jump:


Users browsing this thread: 2 Guest(s)