[Ajuda] /AnVip e Vips online
#2

Tenta fazer assim:
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(pVip[playerid][Vip] > 0)
			{
				format(strings, sizeof(strings), "%s", GetName(i));
				SendClientMessage(playerid, 0xE3E3E3FF, strings);
				count++;
			}
		}
	}
Tenta assim:
Код:
CMD:anvip(playerid, params[])
{
    new Mensagem2[128], unome[MAX_PLAYER_NAME], acstr[128];
    
    if(pVip[playerid][Vip] < 1) return SendClientMessage(playerid, RED,"[x] Vocк nгo tem permissгo para usar este comando!");
    
    GetPlayerName(playerid, unome, MAX_PLAYERNAME);
    
    if(sscanf(params,"s[128]",Mensagem2)) return SendClientMessage(playerid, YELLOW,"[ > ] Uso correto: /anvip [texto]");
	format(acstr,sizeof(acstr),"{666666}[ANЪNCIO VIP ] %s: {FFFFFF}%s", unome, Mensagem2);
	SendClientMessageToAll(-1,acstr);
    return 1;
}
Obs: Nгo й necessбrio uma String tгo grande. Se nгo me engano, o prуprio chat corta a frase depois de 128.
Reply


Messages In This Thread
/AnVip e Vips online - by viniciussvl - 22.12.2015, 15:44
Re: /AnVip e Vips online - by Ever_SH - 22.12.2015, 16:12
Re: /AnVip e Vips online - by arakuta - 22.12.2015, 16:25
Re: /AnVip e Vips online - by DKDarkking - 23.12.2015, 02:00

Forum Jump:


Users browsing this thread: 1 Guest(s)