Can someone help me with this?
#1

So, I've got a moving textdraw and I tried to make a command to hide it, but it didn't work. When the timer updates the textdraw, it shows again. I tried to kill the timer, again the same.
Here's the simple command:
pawn Код:
if(strcmp(cmdtext,"/hnt",true)==0)
{
TextDrawHideForPlayer(playerid,Ntick);
return 1;
}
Thanks in advance!
Reply
#2

Make a variable,

Код:
new hidetxt[MAX_PLAYERS]; //Top of script.
then OnPlayerConnect

Код:
 hidetxt[playerid] = 0;
Then on your update function.

Код:
 if(hidetxt[playerid] == 1)) { return TextDrawHideForPlayer(playerid,Ntick);
EDIT: Lol forgot, on your hide command, put
Код:
 hidetxt[playerid] = 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)