[Ajuda] Chat
#1



queria fazer um sistema de chat igaul esse ae
[ID] [VIP] [Nick]
Ex. [1] [VIP] Everton : ..
quando player for normal [ID] [Nick]
Mais nгo sei fazer ..

Код HTML:
if (strcmp(cmd, "/setarvip", true) == 0)
{
	if (!IsPlayerAdmin(playerid)) return 0;
	new tmp[128];
	new plid;
	tmp = strtok(cmdtext, idx);
	if (!strlen(tmp))
	{
		SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /setarvip [id].");
		return 1;
	}
	plid = strval(tmp);
	if (IsPlayerConnected(plid))
	{
		new pname[MAX_PLAYER_NAME];
		GetPlayerName(plid, pname, MAX_PLAYER_NAME);
		format(file2, sizeof(file2), PASTA_CONTAS, pname);
		dini_IntSet(file2, "VIP", 1);
		SpawnPlayer(playerid);
		SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Setado com sucesso");
		SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin setou VIP para vocк aproveite ;D");
		return 1;
	}
	else
	{
		SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
		return 1;
	}
}
Reply


Messages In This Thread
[Ajuda] Chat - by SynVengeance - 02.05.2012, 13:45
Re: [Ajuda] Chat - by Edu33 - 02.05.2012, 14:07
Re : [Ajuda] Chat - by 3V3RTON - 02.05.2012, 14:14
Re: [Ajuda] Chat - by steki. - 02.05.2012, 14:31
Re: [Ajuda] Chat - by Djair_Black - 02.05.2012, 14:38
Re: [Ajuda] Chat - by SPOT_M16 - 02.05.2012, 19:11
Re: [Ajuda] Chat - by Trigo - 02.05.2012, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)