#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
#2

SetTimerEx
Reply
#3

SetTimerEx("mat",600000,false);
gives an error
Reply
#4

help plox
Reply
#5

use wiki plox
https://sampwiki.blast.hk/wiki/SetTimerEx
Reply
#6

SetTimerEx("mat",600000,false,"i",playerid);

Fixed.
Reply
#7

Ty dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)