SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 15/03/2010, 07:13 PM   #1
bartje01
High-roller
 
Join Date: Jan 2009
Posts: 1,419
Reputation: 6
Default Timer

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
bartje01 is offline  
Old 15/03/2010, 07:17 PM   #2
lameguy
Guest
 
Posts: n/a
Default Re: Timer

SetTimerEx
 
Old 15/03/2010, 07:30 PM   #3
bartje01
High-roller
 
Join Date: Jan 2009
Posts: 1,419
Reputation: 6
Default Re: Timer

SetTimerEx("mat",600000,false);
gives an error
bartje01 is offline  
Old 17/03/2010, 04:22 PM   #4
bartje01
High-roller
 
Join Date: Jan 2009
Posts: 1,419
Reputation: 6
Default Re: Timer

help plox
bartje01 is offline  
Old 17/03/2010, 04:32 PM   #5
Rzzr
Gangsta
 
Rzzr's Avatar
 
Join Date: Aug 2007
Location: Netherlands
Posts: 657
Reputation: 264
Default Re: Timer

use wiki plox
http://wiki.sa-mp.com/wiki/SetTimerEx
Rzzr is offline  
Old 17/03/2010, 04:38 PM   #6
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 546
Reputation: 0
Default Re: Timer

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

Fixed.
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.
biltong is offline  
Old 17/03/2010, 04:43 PM   #7
bartje01
High-roller
 
Join Date: Jan 2009
Posts: 1,419
Reputation: 6
Default Re: Timer

Ty dude
bartje01 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLS help with TIMER DRIFT_HUNTER Help Archive 4 16/03/2010 03:18 PM
Timer help TouR Help Archive 21 07/12/2009 07:39 PM
C4 TIMER Frankox Help Archive 15 09/07/2009 12:21 PM
How to add this onto a timer? JoeDaDude Help Archive 5 28/05/2009 06:53 PM
Help with timer dice7 Help Archive 3 11/04/2009 10:31 AM


All times are GMT. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.