Textdraw help
#1

Код:
#include <a_samp>

new Text:website;
new Text:WXTDM;
new Text:Version;

public OnFilterScriptInit()
{

	// Textdraw stuff
	website = TextDrawCreate(489.000000, 428.000000, "www.wx-play.cf");
	TextDrawBackgroundColor(website, 255);
	TextDrawFont(website, 1);
	TextDrawLetterSize(website, 0.500000, 2.000000);
	TextDrawColor(website, -16776961);
	TextDrawSetOutline(website, 0);
	TextDrawSetProportional(website, 1);
	TextDrawSetShadow(website, 1);

	WXTDM = TextDrawCreate(499.000000, 96.000000, "WXTDM");
	TextDrawBackgroundColor(WXTDM, 65535);
	TextDrawFont(WXTDM, 1);
	TextDrawLetterSize(WXTDM, 0.500000, 2.000000);
	TextDrawColor(WXTDM, 16711935);
	TextDrawSetOutline(WXTDM, 1);
	TextDrawSetProportional(WXTDM, 1);

	Version = TextDrawCreate(73.000000, 327.000000, "v10");
	TextDrawBackgroundColor(Version, 255);
	TextDrawFont(Version, 0);
	TextDrawLetterSize(Version, 0.500000, 2.000000);
	TextDrawColor(Version, 65535);
	TextDrawSetOutline(Version, 0);
	TextDrawSetProportional(Version, 1);
	TextDrawSetShadow(Version, 1);

	for(new i; i < MAX_PLAYERS; i ++)
	{
		if(IsPlayerConnected(i))
		{
			TextDrawShowForPlayer(i, website);
			TextDrawShowForPlayer(i, WXTDM);
			TextDrawShowForPlayer(i, Version);
		}
	}
	return 1;
}


public OnPlayerConnect(playerid)
{
	TextDrawShowForPlayer(playerid, website);
	TextDrawShowForPlayer(playerid, WXTDM);
	TextDrawShowForPlayer(playerid, Version);
	return 1;
}
my textdraw disappear after few second ( after join server )
Reply


Messages In This Thread
Textdraw help - by KyNe - 25.12.2017, 01:01
Re: Textdraw help - by DonaldDuck - 25.12.2017, 03:02
Re: Textdraw help - by RogueDrifter - 25.12.2017, 03:13

Forum Jump:


Users browsing this thread: 2 Guest(s)