Help Textdrawm
#7

try this

PHP код:
new PlayerText:WellTD[MAX_PLAYERS][2];//at the top of your gm
new WEllTdTimer[MAX_PLAYERS];//at the top of your gm
public OnPlayerConnect(playerid)
{
        
WellTD[playerid][0] = CreatePlayerTextDraw(playerid, -0.651468, -0.166672"LOADSUK:loadsc2");
    
PlayerTextDrawTextSize(playeridWellTD[playerid][0], 642.000000449.000000);
    
PlayerTextDrawAlignment(playeridWellTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridWellTD[playerid][0], -1);
    
PlayerTextDrawSetShadow(playeridWellTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridWellTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridWellTD[playerid][0], 4);
    
PlayerTextDrawSetProportional(playeridWellTD[playerid][0], 0);
    
    
WellTD[playerid][1] = CreatePlayerTextDraw(playerid, -0.651468, -0.166672"LOADSUK:loadsc3");
    
PlayerTextDrawTextSize(playeridWellTD[playerid][1], 642.000000449.000000);
    
PlayerTextDrawAlignment(playeridWellTD[playerid][1], 1);
    
PlayerTextDrawColor(playeridWellTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridWellTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridWellTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridWellTD[playerid][1], 4);
    
PlayerTextDrawSetProportional(playeridWellTD[playerid][1], 0);
    
    
WEllTdTimer[playerid] = SetTimerEx("WellTdCh"50001"i"playerid);
    return 
1;
}
forward WellTdCh(playerid);
public 
WellTdCh(playerid)
{
    switch(
random(2))
    {
        case 
0:
        {
            
PlayerTextDrawHide(playeridWellTD[playerid][1]);
            
PlayerTextDrawHide(playeridWellTD[playerid][0]);
                
PlayerTextDrawShow(playeridWellTD[playerid][1]);
        }
        case 
1:
        {
                
PlayerTextDrawHide(playeridWellTD[playerid][1]);
            
PlayerTextDrawHide(playeridWellTD[playerid][0]);
            
PlayerTextDrawShow(playeridWellTD[playerid][0]);
        }
    }
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
KillTimer(WEllTdTimer[playerid]);
    
PlayerTextDrawHide(playeridWellTD[playerid][0]);
    
PlayerTextDrawHide(playeridWellTD[playerid][1]);
    return 
1;

Reply


Messages In This Thread
Help Textdrawm - by LOLITO - 03.02.2018, 16:16
Re: Help Textdrawm - by solstice_ - 03.02.2018, 16:17
Re: Help Textdrawm - by LOLITO - 03.02.2018, 16:21
Re: Help Textdrawm - by solstice_ - 03.02.2018, 16:26
Re: Help Textdrawm - by wallen - 03.02.2018, 16:27
Re: Help Textdrawm - by dani18 - 03.02.2018, 16:28
Re: Help Textdrawm - by shourya - 04.02.2018, 03:10

Forum Jump:


Users browsing this thread: 2 Guest(s)