SA-MP Forums Archive
[Help] Timer - For one player [SOLVED] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Timer - For one player [SOLVED] (/showthread.php?tid=88463)



[Help] Timer - For one player [SOLVED] - pagie1111 - 26.07.2009

I HAVE SEARCHED!!!

Okay, I need to know how to make a timer work for a player who executed it....


Код:
Exapmple:

if (strcmp("/test", cmdtext, true, 10) == 0)
{
SetTimer("Test",1000,false);
return 1;
}

forward Test(playerid);

public Test(playerid)
{
SetPlayerArmour(playerid,100.00);
}
This help will be appreciated muchly....


Re: [Help] Timer - For one player - [ERP]Snow - 26.07.2009

Код:
forward Test(playerid);

if (strcmp(cmd, "/test", true)==0) 
{
SetTimerEx("Test",1000,0,"i",playerid);
return 1;
}

public Test(playerid)
{
SetPlayerArmour(playerid,100.00);
return 1;
}
This help will be appreciated muchly....
[/quote]


Re: [Help] Timer - For one player - Jakku - 27.07.2009

SetTimer works only for ID 0, SetTimerEx seems to be work for everyone


Re: [Help] Timer - For one player - pagie1111 - 27.07.2009

Only for ONE player, no matter what ID...,, please


Re: [Help] Timer - For one player - SpiderPork - 27.07.2009

Quote:
Originally Posted by pagie1111
Only for ONE player, no matter what ID...,, please
Can't you read? You have got two answers just above you.


Re: [Help] Timer - For one player - pagie1111 - 27.07.2009

Quote:
Originally Posted by SpiderPork
Quote:
Originally Posted by pagie1111
Only for ONE player, no matter what ID...,, please
Can't you read? You have got two answers just above you.
BAHAHAHA LOL! i am a dickhead, cant beleive i missed it heheheh ill test it soon :P sorry :S