Timer
#1

Hey guys. i have a problem
If I do this:
Code:
 }
	 if(strcmp(cmd, "/materialmission", true) == 0) {
	if(matmission == 1) return SendClientMessage(playerid, red, "material Mission is in cool down ");
	else
	if(IsPlayerInRangeOfPoint(playerid, 7.0, 2139.9497,-2291.2764,20.6646))
	{
  GameTextForPlayer(playerid,"~B~You've picked up 7500 materials. Wait 10 minutes till you can get your new 7500",5000,5);
  PlayerInfo[playerid][Materials]+=7500;
  SetTimer("mat",600000,false);
  matmission = 1;
	}
	else
  SendClientMessage(playerid,red,"ERROR: You are not at the material factory");

	return 1;

	}
A timer starts. But it starts for everyone and not just for the player that did /materialmission

please help
Reply


Messages In This Thread
Timer - by bartje01 - 15.03.2010, 19:13
Re: Timer - by lameguy - 15.03.2010, 19:17
Re: Timer - by bartje01 - 15.03.2010, 19:30
Re: Timer - by bartje01 - 17.03.2010, 16:22
Re: Timer - by Rzzr - 17.03.2010, 16:32
Re: Timer - by biltong - 17.03.2010, 16:38
Re: Timer - by bartje01 - 17.03.2010, 16:43

Forum Jump:


Users browsing this thread: 2 Guest(s)