30.03.2016, 16:26
Quote:
|
Onplayerconnect.
Код:
if( ) //The codes if the player is at captured point
{
SET TIMER HERE example the timer name is captured
}
if() //not captured
{
set value here by a new enum let it be 1
}
In the timer captured :
If() the new enum value is 1
{
killtimer
}
//edit : you may even put the codes under onplayerspawn ( more efficient is suggest this ) |
Shouldn't I do it on OnGameModeInit and loop the timer ?
So even tho when the point is captured it will start adding money only when the next check is executed I don't really have a problem with that.


