[Ajuda] TextDrawCreate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDrawCreate (
/showthread.php?tid=521827)
TextDrawCreate -
chefaoBR - 24.06.2014
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);
Re: TextDrawCreate -
zPain - 24.06.2014
Condicionais e format.
Re: TextDrawCreate -
[BWL]Chamaleon - 25.06.2014
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,