textdraw hide show command
#1

hello i am trying to do a command which will hide and show the textdraw whenever the player wants

PHP код:
CMD:tdoption(playeridparams[])
{
    if(
textdraw[playerid] >= 0)
    {
        
TextDrawHideForPlayer(playeridMain);
        
TextDrawHideForPlayer(playeridWebsite);
        
textdraw[playerid] = 1;
    }
    else if(
textdraw[playerid] >= 1)
    {
        
TextDrawShowForPlayer(playeridMain);
        
TextDrawShowForPlayer(playeridWebsite);
        
textdraw[playerid] = 0;
    }
    return 
1;

when i enter it first time it hide it but when i enter it second time it will not show the textdraws

thanks in advance
Reply


Messages In This Thread
textdraw hide show command - by SalmaN97 - 01.05.2015, 17:54
Re: textdraw hide show command - by Alpay0098 - 01.05.2015, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)