Timer
#1

Hi. i'm creating /weapons command. When round starts 30 sec this command gona work, after 30sec gona dont work
But i've have some problems, the /weapons command is working all time -.-
Can somebody help me?
This is my code:

Код:
new canuseguns;

----------------------------

  if (strcmp("/weapons", cmdtext, true, 10) == 0)
  {
  if ( canuseguns == 1 ) ResetPlayerWeapons(playerid), ShowMenuForPlayer(WEAP1, playerid);
  return 1;
  }

-----------------------


  canuseguns = 1;
	SetTimer("canuseguns = 0;",10000,false);
Reply


Messages In This Thread
Timer - by jaksimaksi - 05.12.2009, 13:07
Re: Timer - by V1ceC1ty - 05.12.2009, 14:40
Re: Timer - by jaksimaksi - 05.12.2009, 15:24
Re: Timer - by jaksimaksi - 06.12.2009, 10:58
Re: Timer - by Balon - 06.12.2009, 13:16
Re: Timer - by Donny_k - 06.12.2009, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)