/plantweed timer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /plantweed timer (
/showthread.php?tid=508986)
/plantweed timer -
Zens - 24.04.2014
http://pastebin.com/zrg3qRVS
How can I possibly add a forward to the timer "CookPlant" which gives 2 grams each minute and maximum is 20 grams (10 minutes)?
Re: /plantweed timer -
arakuta - 24.04.2014
pawn Код:
new executions;
new MyTimer;
forward CookPlant(str[],int,Float:var);
public CookPlant(str[],int,Float:var)
{
printf("You've passed to me: %s %d %i",str,int,var);
Executions ++;
if(Executions >= 20)
KillTimer(MyTimer);
return 1;
}
pawn Код:
// Executions = 0;
// MyTimer = SetTimerEx("CookPlant",60000,true,"sdf","A TEXT!",1000,10.5");