Textdraw Issue
#1

I need some advice on where to go from here, as I have hit a brick wall and cant think at the moment.
I have made the textdraws so that if a player joins the server they get their own display menu in a way. However When one person joins they get the textdraws and noone else does. Stuck

Define
Код:
new Text:InfectionLabel[MAX_PLAYERS];
Under OnPlayerConnect
Код:
for(new i; i<MAX_PLAYERS; i++)
	{
	    InfectionLabel[i] = TextDrawCreate(565.000000, 64.000000, "Infected");
		TextDrawBackgroundColor(InfectionLabel[i], 255);
		TextDrawTextSize(InfectionLabel[i],633.000000,5.000000);
		TextDrawFont(InfectionLabel[i], 1);
		TextDrawLetterSize(InfectionLabel[i],0.159999, 1.100000);
		TextDrawColor(InfectionLabel[i], -1);
		TextDrawSetOutline(InfectionLabel[i], 0);
		TextDrawSetProportional(InfectionLabel[i], 1);
		TextDrawSetShadow(InfectionLabel[i], 1);

Under OnGamemodeExit
Код:
for(new i; i<MAX_PLAYERS; i++)
	{
    	TextDrawHideForPlayer(i, InfectionLabel[i]);
    	TextDrawHideForPlayer(i, ServerName[i]);
    	TextDrawHideForPlayer(i, PlayerName[i]);
	}
Under OnPlayerSpawn
Код:
TextDrawShowForPlayer(playerid, InfectionLabel[playerid]);
when the textdraw updates
Код:
if(PlayerInfo[i][psomething] == 0 && PlayerInfo[i][psomething] == 1)
     	{
     	    TextDrawSetString(InfectionLabel[i], "Not Infected");
		}
Reply


Messages In This Thread
Textdraw Issue - by Ciandlah - 08.09.2018, 05:56
Re: Textdraw Issue - by ShihabSoft - 08.09.2018, 07:45
Re: Textdraw Issue - by Ciandlah - 08.09.2018, 09:15
Re: Textdraw Issue - by alanhutch - 08.09.2018, 16:43
Re: Textdraw Issue - by Shinja - 08.09.2018, 19:40

Forum Jump:


Users browsing this thread: 1 Guest(s)