TextDraw - 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: TextDraw (
/showthread.php?tid=525144)
TextDraw -
Akcent_Voltaj - 10.07.2014
hi if I have like 20 textdraws in ongamemodeinit.. if I put one textdraw at onplayerconnect it dosent show it..
if I put some from ongamemodeinit to onplayerconnect it shows..but then its not good.. I need it playerid...
+REP to testers.and to profesionals.that fix problem!
Re: TextDraw -
alanhutch - 10.07.2014
You have to insert the TextDrawCreate under OnGameModeInit and TextDrawShowForPlayer under OnPlayerConnect
Re: TextDraw -
Akcent_Voltaj - 10.07.2014
I don't want to show textdraw at onplayerconnect ..
Re: TextDraw -
Akcent_Voltaj - 10.07.2014
so plz explain.. what can I do qwith these.. they need to start when I press dialog "ok"not when player connects server..
PHP код:
Welcome[playerid] = TextDrawCreate(233.792083, 160.416671, "WELCOME TO WINGSUIT");
TextDrawLetterSize(Welcome[playerid], 0.449999, 1.600000);
TextDrawAlignment(Welcome[playerid], 1);
TextDrawColor(Welcome[playerid], -1523963137);
TextDrawSetShadow(Welcome[playerid], 0);
TextDrawSetOutline(Welcome[playerid], 0);
TextDrawBackgroundColor(Welcome[playerid], 51);
TextDrawFont(Welcome[playerid], 2);
TextDrawSetProportional(Welcome[playerid], 1);
Boxxxx[playerid] = TextDrawCreate(441.004394, 161.916656, "usebox");
TextDrawLetterSize(Boxxxx[playerid], 0.000000, 1.562965);
TextDrawTextSize(Boxxxx[playerid], 225.701324, 0.000000);
TextDrawAlignment(Boxxxx[playerid], 1);
TextDrawColor(Boxxxx[playerid], 0);
TextDrawUseBox(Boxxxx[playerid], true);
TextDrawBoxColor(Boxxxx[playerid], 144);
TextDrawSetShadow(Boxxxx[playerid], 0);
TextDrawSetOutline(Boxxxx[playerid], 0);
TextDrawFont(Boxxxx[playerid], 0);
Re: TextDraw -
BroZeus - 10.07.2014
well as i can see the text for all players are same in textdraw, aren't they..
so whats the need of creating a seprate one for everyplayer
create just on OnGameModeInIt
and display onplayerconnect
and hide on player disconnect
as simple as that
Re: TextDraw -
Akcent_Voltaj - 10.07.2014
hmm show me..