Little help
#1

Okay, so i creating count system now, and need a little question/help.
Now i created a variables, which will hide counting for player who disabled count with command.

Command:
PHP код:
    if(strcmp(cmdtext,"/count",true) == 0)
    {
       if(
count[playerid] == 1)
       if (
== false)
       {
       
true;
       for(new 
iMAX_PLAYERSi++) {
       
GameTextForPlayer(i"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~g~ 3 ~b~-",1000,3);
       
GetPlayerPos(i,X,Y,Z);
       }
       
SetTimer("count2",1000,0);
       
SetTimer("count1",2000,0);
       
SetTimer("countgo",3000,0);
       
SetTimer("stop",6000,0);
    }
       else 
SendClientMessage(playerid0xFFFFFFFF"{FF0000}KLAIDA{FFFFFF}: Skaiиiavimas jau pradлtas");
       if(
count[playerid] == 0)
       {
    }
       return 
1;
     } 
The count invisible for player who disabled the counting, but when other players start count the texdraws appears again..

The variable of disable is
PHP код:
if(count[playerid] == 1
1 = Disabled counting
0 = Enabled counting.
Reply


Messages In This Thread
Little help - by ixesas - 29.06.2012, 21:18
Re: Little help - by [A]ndrei - 29.06.2012, 21:22
Re: Little help - by BaubaS - 29.06.2012, 21:29
Re: Little help - by AndreT - 29.06.2012, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)