[Help] Timer - For one player [SOLVED]
#1

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

Код:
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]
Reply
#3

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

Only for ONE player, no matter what ID...,, please
Reply
#5

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.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)