07.08.2011, 10:16
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:
I hope that helps..!
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...
}