[Ajuda] TextDrawCreate
#1

galera eu tenho esse textdraw aki mais eu quero que em vez do nome do server aparece o id do jogador , o nome do jogador , e se ele e vip ou nгo . alguem sabe ?

Код:
Textdraw18 = TextDrawCreate(26.000000, 433.000000, "~g~Brasil ~b~Vida ~y~Social ~p~Fazendo e aprendendo [BVS]");
	TextDrawBackgroundColor(Textdraw18, 255);
	TextDrawFont(Textdraw18, 1);
	TextDrawLetterSize(Textdraw18, 0.500000, 1.600000);
	TextDrawColor(Textdraw18, -1);
	TextDrawSetOutline(Textdraw18, 1);
	TextDrawSetProportional(Textdraw18, 1);
Reply
#2

Condicionais e format.
Reply
#3

pawn Код:
Textdraw18 = TextDrawCreate(26.000000, 433.000000, " ");
TextDrawBackgroundColor(Textdraw18, 255);
TextDrawFont(Textdraw18, 1);
TextDrawLetterSize(Textdraw18, 0.500000, 1.600000);
TextDrawColor(Textdraw18, -1);
TextDrawSetOutline(Textdraw18, 1);
TextDrawSetProportional(Textdraw18, 1);

new string[256];
for (new i=0;i< MAX_PLAYERS;i++){
new nomepl[MAX_PLAYER_NAME];
GetPlayerName(i, nomepl, sizeof(nomepl));
new textvip[64];
if(VariavelVIP[i] == 1) { textvip= "Sim"; } // Coloquei sua variбvel de player vip, tipo PlayerInfo[i][pVip]
if(VariavelVIP[i] == 0) { textvip= "Nao"; }
format(string, sizeof(string), "~R~%s ~g~[ID: %d] ~y~[VIP: %s]",nomepl,i,textvip);
TextDrawSetString(Textdraw18, string);
}
Atenciosamente,
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)