29.06.2012, 21:18
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:
The count invisible for player who disabled the counting, but when other players start count the texdraws appears again..
The variable of disable is
1 = Disabled counting
0 = Enabled counting.
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 (e == false)
{
e = true;
for(new i; i < MAX_PLAYERS; i++) {
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(playerid, 0xFFFFFFFF, "{FF0000}KLAIDA{FFFFFF}: Skaiиiavimas jau pradлtas");
if(count[playerid] == 0)
{
}
return 1;
}
The variable of disable is
PHP код:
if(count[playerid] == 1)
0 = Enabled counting.