I need help
#1

is there any command that check if stats are opened?
Reply
#2

If you can write more information about "Opened Stats"
Reply
#3

I made textdraw stats , and now I made command that hide this textdraw when i click enter but now every time I check enter it shows me a string that says that im closing stats. now I need to make that sys check if stats are open and if they are to hide them if not than do nothing
Reply
#4

When you hidding those stats, create a variable and set it to 1 then if you want to close.
You check if this variable is 1, if so then you need to hide it and set the variable to 0.
Reply
#5

Just you need create a variable

pawn Код:
new bool:CheckStats[MAX_PLAYERS];
Then opening stats.

pawn Код:
CheckStats[playerid]=true;
Check:

pawn Код:
if(CheckStats[playerid]) // true
{
     // Close Stats
     CheckStats[playerid]=false;
}
Edit: Lol I'm slow
Reply
#6

but where to put this, on /stats, or on pressed enter?
Reply
#7

Just on stats cmd set variable value "true"

And then pressing enter check if value "true" he can close box or textdraw if false no.
Reply
#8

I made it, but it still showing text :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)