TextDraw
#1

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!
Reply
#2

You have to insert the TextDrawCreate under OnGameModeInit and TextDrawShowForPlayer under OnPlayerConnect
Reply
#3

I don't want to show textdraw at onplayerconnect ..
Reply
#4

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.792083160.416671"WELCOME TO WINGSUIT");
                        
TextDrawLetterSize(Welcome[playerid], 0.4499991.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.004394161.916656"usebox");
                        
TextDrawLetterSize(Boxxxx[playerid], 0.0000001.562965);
                        
TextDrawTextSize(Boxxxx[playerid], 225.7013240.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); 
Reply
#5

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
Reply
#6

hmm show me..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)