Is that timer for the player only?
#3

pawn Код:
if(!params[0]||!(pos=chrfind(' ',params))||!params[pos])
Look up sscanf. That will make that line much tidier.

Quote:

I want it only for the ID i wrote.

Use SetTimerEx, and make the TuerSilencer variable an array for each player (new TuerSilencer[ MAX_PLAYERS ]:
pawn Код:
TuerSilencer[ playerid ] = SetTimerEx( "Silencer", "1000", true, "i", playerid);
Then change the timer function from
pawn Код:
forward Silencer();
public Silencer()
To:
pawn Код:
forward Silencer(playerid);
public Silencer(playerid)
Then remember to remove the loop and use playerid instead of 'i' in your timer function.
Reply


Messages In This Thread
Is that timer for the player only? - by Saw® - 20.01.2013, 18:05
Re: Is that timer for the player only? - by Saw® - 20.01.2013, 18:08
Re: Is that timer for the player only? - by LarzI - 20.01.2013, 18:08
Re: Is that timer for the player only? - by Saw® - 20.01.2013, 18:23
Re: Is that timer for the player only? - by DaRk_RaiN - 20.01.2013, 18:28
Re: Is that timer for the player only? - by Saw® - 20.01.2013, 18:30
Re: Is that timer for the player only? - by DaRk_RaiN - 20.01.2013, 18:35
Re: Is that timer for the player only? - by LarzI - 20.01.2013, 18:39
Re: Is that timer for the player only? - by Saw® - 20.01.2013, 18:39
Re: Is that timer for the player only? - by DaRk_RaiN - 20.01.2013, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)