19.07.2013, 07:46
The most easy way is to do this:
Remember to set the bool to true and false when ever the player enters/leaves the derby. There are many other options, but the easiest is this!
pawn Код:
enum pInfo
{
bool:in_DERBY
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public WHERE_YOU_CODED_YOUR_AUTO_REPAIR_SYSTEM
{
if(!PlayerInfo[playerid][in_DERBY]) // The player's not in a derby
{
SET TIMERS, YOUR CODE, ETC.
}
else // DO NOTHING.
}