You can do it with a timer and a global variable, something like this:
pawn Код:
new CanDoOrder[MAX_PLAYERS]; //On top of your script
public OrderCompletedCallback(playerid) // Think of this of the callback or code where the order is completed
{
CanDoOrder[playerid] = 0;
SetTimerEx("CanDoOrderAgain",600000,0,"i",playerid);
}
public CanDoOrderAgain(playerid) //This is the callback which will enable the orders again
{
CanDoOrder[playerid] = 1;
}
Then just check before the player attempts to do the order if the CanDoOrder variable is 1, if it isn't, send a message to the player that he has to wait.
If you're using the idea from above, be sure to add CanDoOrder[playerid] = 1; under OnPlayerConnect.
Also, please note that timers are slightly out of sync, to fix this, czech
the fixes2 plugin.