[SOLVED] Enable Textdraw when type a command and disable when type the ......
#2

create a variable, like:
pawn Code:
new bool:textdrawon[MAX_PLAYERS];
OnPlayerConnect add:

pawn Code:
textdrawon[playerid] = false;
Then in your command add:

pawn Code:
if(textdrawon[playerid] == false)
{
  TextDrawShowForPlayer(...);
  textdrawon[playerid] = true;
}
else if(textdrawon[playerid] == true)
{
  TextDrawHideForPlayer(....);
  textdrawon[playerid] = false;
}
Reply


Messages In This Thread
[SOLVED] Enable Textdraw when type a command and disable when type the ...... - by RyDeR` - 11.08.2009, 20:39
Re: Enable Textdraw when type a command and disable when type the same command how? - by arnutisz - 11.08.2009, 20:52
Re: Enable Textdraw when type a command and disable when type the same command how? - by RyDeR` - 11.08.2009, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)