[Ajuda] Bloquear textdraw para quem jб for resgistrado
#1

Eu quero bloquear essa textdraw para quem jб й registrado, alguem pode me ajudar?

PHP код:
new PlayerTextgui_login_botao[3];
stock CriarPlayerTextdraws(playerid)
{
    
gui_login_botao[2] = CreatePlayerTextDraw(playerid319.000000224.000000"Sair");
    
PlayerTextDrawAlignment(playeridgui_login_botao[2], 2);
    
PlayerTextDrawBackgroundColor(playeridgui_login_botao[2], 255);
    
PlayerTextDrawFont(playeridgui_login_botao[2], 2);
    
PlayerTextDrawLetterSize(playeridgui_login_botao[2], 0.3400001.399999);
    
PlayerTextDrawColor(playeridgui_login_botao[2], -1);
    
PlayerTextDrawSetOutline(playeridgui_login_botao[2], 1);
    
PlayerTextDrawSetProportional(playeridgui_login_botao[2], 1);
    
PlayerTextDrawUseBox(playeridgui_login_botao[2], 1);
    
PlayerTextDrawBoxColor(playeridgui_login_botao[2], 0);
    
PlayerTextDrawTextSize(playeridgui_login_botao[2], 25.00000044.000000);
    
PlayerTextDrawSetSelectable(playeridgui_login_botao[2], 1);
}
public 
OnPlayerConnect(playerid)
{
    
CriarPlayerTextdraws(playerid);
       
ShowTextDrawsLogin(playerid);
    return 
1;
}
public 
OnPlayerClickPlayerTextDraw(playeridPlayerTextplayertextid)
{
    if(
playertextid == gui_login_botao[2])
        return 
Kick(playerid);
    return 
1;
}
stock ShowTextDrawsLogin(playerid)
{
    for(new 
0sizeof(gui_login); i++) PlayerTextDrawShow(playeridgui_login[i]);
    for(new 
0sizeof(gui_login_botao); i++) PlayerTextDrawShow(playeridgui_login_botao[i]);
}
stock ClosedTextDrawsLogin(playerid)
{
    for(new 
0sizeof(gui_login); i++) PlayerTextDrawHide(playeridgui_login[i]);
    for(new 
0sizeof(gui_login_botao); i++) PlayerTextDrawHide(playeridgui_login_botao[i]);

Reply


Messages In This Thread
Bloquear textdraw para quem jб for resgistrado - by _Play_ - 27.05.2015, 21:30
Re: Bloquear textdraw para quem jб for resgistrado - by Whoo - 27.05.2015, 21:37
Re: Bloquear textdraw para quem jб for resgistrado - by Jimmmy - 27.05.2015, 21:38
Re: Bloquear textdraw para quem jб for resgistrado - by _Play_ - 27.05.2015, 21:50
Re: Bloquear textdraw para quem jб for resgistrado - by VeNuZ_ - 27.05.2015, 21:57
Re: Bloquear textdraw para quem jб for resgistrado - by n0minal - 27.05.2015, 22:10
Re: Bloquear textdraw para quem jб for resgistrado - by Jimmmy - 27.05.2015, 22:38

Forum Jump:


Users browsing this thread: 2 Guest(s)