01.05.2015, 17:54
hello i am trying to do a command which will hide and show the textdraw whenever the player wants
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
PHP код:
CMD:tdoption(playerid, params[])
{
if(textdraw[playerid] >= 0)
{
TextDrawHideForPlayer(playerid, Main);
TextDrawHideForPlayer(playerid, Website);
textdraw[playerid] = 1;
}
else if(textdraw[playerid] >= 1)
{
TextDrawShowForPlayer(playerid, Main);
TextDrawShowForPlayer(playerid, Website);
textdraw[playerid] = 0;
}
return 1;
}
thanks in advance