Textdraw New Prob here >.< PLEEEASE HELP!! :( [waiting already a whole day....]
#2

1) You should ask in the SeifAdmin topic
2) Try this
pawn Code:
// Top of script
forward PlayingTime(playerid);
new PlayingTimer[MAX_PLAYERS];
// OnPlayerConnect
PlayingTimer[playerid] = SetTimerEx(blablabla);
// OnPlayerDisconnect
KillTimer[PlayingTimer[playerid);
// Somewhere in scipt
public PlayingTime(playerid)
{
AccountInfo[playerid][Secs]++;
if(AccountInfo[playerid][Secs] == 60)
{
AccountInfo[playerid][Mins]++;
}
if(AccountInfo[playerid][Mins] == 60)
{
AccountInfo[playerid][Hours]++;
}
return 1;
}
Also add the variables Secs and Mins to thier Account, If you want only one timer then do this
pawn Code:
// Top of script
forward PlayingTime();
// OnGameModeInit
SetTimer("PlayingTime", 1000, 1);
// Somewhere in scipt
public PlayingTime()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
AccountInfo[i][Secs]++;
if(AccountInfo[i][Secs] == 60)
{
AccountInfo[i][Mins]++;
}
if(AccountInfo[i][Mins] == 60)
{
AccountInfo[i][Hours]++;
}
}
}
return 1;
}
Reply


Messages In This Thread
Textdraw New Prob here >.< PLEEEASE HELP!! :( [waiting already a whole day....] - by saiberfun - 06.03.2009, 16:48
Re: Hours Timer - by ICECOLDKILLAK8 - 06.03.2009, 16:51
Re: Hours Timer - by saiberfun - 06.03.2009, 17:24
Re: Hours Timer - by saiberfun - 07.03.2009, 17:53
Re: Hours Timer PLS HELP :/ - by saiberfun - 07.03.2009, 19:05
Re: Hours Timer PLS HELP :/ - by saiberfun - 07.03.2009, 23:46
Re: Hours Timer PLS HELP :/ - by saiberfun - 08.03.2009, 12:03
Re: New Prob here >.< PLEEEASE HELP!! :( - by saiberfun - 08.03.2009, 13:29
Re: New Prob here >.< PLEEEASE HELP!! :( - by Dujma - 08.03.2009, 13:36
Re: New Prob here >.< PLEEEASE HELP!! :( - by saiberfun - 08.03.2009, 13:52

Forum Jump:


Users browsing this thread: 1 Guest(s)