SA-MP Forums Archive
ShowTextdraw. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ShowTextdraw. (/showthread.php?tid=586322)



ShowTextdraw. - anassmaroc - 21.08.2015

Hi All. iHave Problйm in Showing a Textraw
Must when a Donator (Vip) Login the Textdraw mUst Show For all
Full Textdraws
Код:
	Textdraw18 = TextDrawCreate(5.555572, 424.148315, "~y~Welcome To X1treme Stunting");
	TextDrawLetterSize(Textdraw18, 0.298330, 0.967409);
	TextDrawAlignment(Textdraw18, 1);
	TextDrawColor(Textdraw18, -1);
	TextDrawSetShadow(Textdraw18, 0);
	TextDrawSetOutline(Textdraw18, 1);
	TextDrawBackgroundColor(Textdraw18, 51);
	TextDrawFont(Textdraw18, 1);
	TextDrawSetProportional(Textdraw18, 1);
	Textdraw19 = TextDrawCreate(5.599996, 422.613372, "");
	TextDrawLetterSize(Textdraw19, 0.282799, 1.316266);
	TextDrawAlignment(Textdraw19, 1);
	TextDrawSetShadow(Textdraw19, 0);
	TextDrawSetOutline(Textdraw19, 0);
	TextDrawBackgroundColor(Textdraw19, 51);
	TextDrawFont(Textdraw19, 1);
	TextDrawSetProportional(Textdraw19, 1);
Код:
forward Donator(playerid);
public Donator(playerid)
{
   foreach(Player, i)
   {
		if(IsPlayerConnected(i))
		{
		  if (Account[i][VipLevel] > 1)// cce
		  Textdraw19 = TextDrawCreate(5.555572, 424.148315, "~b~[DONATOR]");
		  TextDrawLetterSize(Textdraw19, 0.298330, 0.967409);
		  TextDrawAlignment(Textdraw19, 1);
		  TextDrawColor(Textdraw19, -1);
		  TextDrawSetShadow(Textdraw19, 0);
		  TextDrawSetOutline(Textdraw19, 1);
		  TextDrawBackgroundColor(Textdraw19, 51);
		  TextDrawFont(Textdraw19, 1);
		  TextDrawSetProportional(Textdraw19, 1);
		}
    }
    return 1;
}
and this is onPLAYERCONNET
Код:
if(Account[playerid][VipLevel] >= 1)
    {
        new name[MAX_PLAYER_NAME], string[100];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "~b~[DONATOR] %s has joined the game.", name);
        TextDrawSetString(Textdraw18, string);
        TextDrawShowForAll(Textdraw18);
    }
    SetTimerEx("Donator", 10000, true, "i", playerid);
}
tHIS in Ongamemodint
Код:
 	SetTimer("RandomMessage",5000,1);
PHP код:
new RandomMessages[][] =
{
    
"~y~.....",
};
public 
RandomMessage()
{
        
TextDrawSetString(Textdraw18RandomMessages[random(sizeof(RandomMessages))]);
        return 
1;

Please Help and +rep


Re: ShowTextdraw. - fahlevy - 21.08.2015

What u mean?u want The text draw just show for DONATOR?


Re: ShowTextdraw. - anassmaroc - 21.08.2015

When Vip Logged In Server Must Work like this
Any 1 Edit the Codes i will +rep please all


Re: ShowTextdraw. - FrankLucretti - 21.08.2015

Should work:

PHP код:
    Textdraw18 TextDrawCreate(5.555572424.148315"~y~Welcome To X1treme Stunting");
    
TextDrawLetterSize(Textdraw180.2983300.967409);
    
TextDrawAlignment(Textdraw181);
    
TextDrawColor(Textdraw18, -1);
    
TextDrawSetShadow(Textdraw180);
    
TextDrawSetOutline(Textdraw181);
    
TextDrawBackgroundColor(Textdraw1851);
    
TextDrawFont(Textdraw181);
    
TextDrawSetProportional(Textdraw181);
    
Textdraw19 TextDrawCreate(5.599996422.613372"");
{
public 
RandomMessage() 

        
TextDrawSetString(Textdraw18RandomMessages[random(sizeof(RandomMessages))]); 
        return 
1




Re: ShowTextdraw. - anassmaroc - 21.08.2015

u Didn't Do anything o.0


Re: ShowTextdraw. - anassmaroc - 22.08.2015

Bump!