08.09.2018, 05:56
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
Under OnPlayerConnect
Under OnGamemodeExit
Under OnPlayerSpawn
when the textdraw updates
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];
Код:
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]); }
Код:
TextDrawShowForPlayer(playerid, InfectionLabel[playerid]);
Код:
if(PlayerInfo[i][psomething] == 0 && PlayerInfo[i][psomething] == 1) { TextDrawSetString(InfectionLabel[i], "Not Infected"); }