killtimer help
#1

Код:
	if (strcmp("/rainbowcaroff", cmdtext, false, 14) == 0)
	{

	    	SendClientMessage(playerid, COLOR_RED, "Rainbow Car has been turned off.");
			KillTimer(CTimer1);
			KillTimer(CTimer2);
			KillTimer(CTimer3);
			KillTimer(CTimer4);
			KillTimer(CTimer5);
            return 1;
    }
this command when type it player i will kill timer for all player how to make it for player kill timer only not for all kill timer
how to make this command for kill timer for player not for kill timer for all player
Reply
#2

Are you using SetTimerEx ?
Reply
#3

Try creating the timer like this
Код:
new CTimer1[MAX_PLAYERS];
Код:
CTimer1[playerid] = SetTimer....
Код:
KillTimer(CTimer1[playerid]);
Reply
#4

How do you set the timer?
Reply
#5

fail im fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)