I have made a newbie chat.
#2

I'm guessing you're using a system with a timer, which is silly, instead of using wasteful timers, why not make use of GetTickCount? For example:

pawn Код:
// Your command code.....
pNMMuteTime = GetTickCount();

// When he tries to talk
new iCount = GetTickCount() - pNMMuteTime;
if(iCount >= 300000) // check if 5 minutes has passed!
{
   // PLayer can talk...
}
else
{
    printf("You still have %d minutes to go!", iCount/60000); // Tell him how long he has left in minutes...
}
I hope that helps..!
Reply


Messages In This Thread
I have made a newbie chat. - by Harry_Sandhu - 07.08.2011, 10:00
Re: I have made a newbie chat. - by JaTochNietDan - 07.08.2011, 10:16
Re: I have made a newbie chat. - by Harry_Sandhu - 07.08.2011, 10:29
Re: I have made a newbie chat. - by JaTochNietDan - 07.08.2011, 10:38
Re: I have made a newbie chat. - by Harry_Sandhu - 07.08.2011, 11:44
Re: I have made a newbie chat. - by emokidx - 07.08.2011, 12:39
Re: I have made a newbie chat. - by Harry_Sandhu - 07.08.2011, 13:02

Forum Jump:


Users browsing this thread: 6 Guest(s)