27.04.2014, 16:11
I want a textdraw to be shown after player spawns. instead it shows it when he connects and disappears on spawn.
The "TextDrawShowForPlayer" is executed only when player spawns and not when he is connected.
Here is the code:
On TOP:
Under OnGameModeInit:
Under OnPlayerSpawn(playerid):
When player connects it shows the textdraw. when he spawns the textdraw hides.
only the first textdraw.. no matter which one.. executed when player connects.
Whats the problem? and how i fix it? please help me!
The "TextDrawShowForPlayer" is executed only when player spawns and not when he is connected.
Here is the code:
On TOP:
pawn Код:
new Text:Website;
pawn Код:
Website = TextDrawCreate(5.0, 431.0, "~h~Test");
TextDrawFont(Website, 2);
TextDrawSetShadow(Website, 0);
TextDrawSetOutline(Website, 1);
TextDrawAlignment(Website, 1);
TextDrawLetterSize(Website, 0.300000,1.000000);
TextDrawColor(Website, 0x0183C8FF);
TextDrawSetOutline(Website, 1);
TextDrawUseBox(Website, false);
pawn Код:
TextDrawShowForPlayer(playerid, Website);
only the first textdraw.. no matter which one.. executed when player connects.
Whats the problem? and how i fix it? please help me!