What is the code for this?.
#2

The most easy way is to do 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.
}
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!
Reply


Messages In This Thread
What is the code for this?. - by QatarKnight - 19.07.2013, 07:42
Re: What is the code for this?. - by RajatPawar - 19.07.2013, 07:46
Re: What is the code for this?. - by QatarKnight - 19.07.2013, 09:02
Re : What is the code for this?. - by Chrisis - 19.07.2013, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)