18.07.2011, 21:04
I'm basically not sure how to save the timer to the player so when he/she logs out it saves and when the relog it continues.
An example would be appreciated.
An example would be appreciated.
//Top of script new Last[MAX_PLAYERS]; //END
//Where the player types a cmd or something..
if(Last[playerid] <= 0)
{
Last[playerid] = GetTickCount();
}
else
{
//Last is set..
}
//END