Posts: 453
Threads: 173
Joined: Jun 2011
Reputation:
0
Hi people.I need some help to do ban system like that: /ban [playerid] [time/hours](and only hours not like that /ban [playerid] [years,months and bla bla].I know it's hard to do,but maybe have and can give me,or make thanks for answers.
Posts: 453
Threads: 173
Joined: Jun 2011
Reputation:
0
Yes,but it's ban for minutes,i need for hours.I try to do that but nothing good...
Add:Maybe somebody can do that?to make foxban with hours.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Posts: 453
Threads: 173
Joined: Jun 2011
Reputation:
0
No it's no better, i need only hours there is years months i don't need that?
Add:Shadow not need to change anything in foxban.inc?
Posts: 453
Threads: 173
Joined: Jun 2011
Reputation:
0
I fix fox ban now i can ban for hours,but one trouble.How to do that?public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(FB_tbDir,sizeof(FB_tbDir),FB_foxBanFile,pNa me);
if(FB_dini_Exists(FB_tbDir))
{
if(FB_dini_Int(FB_tbDir,"fbFB_Time")+FB_dini_Int(F B_tbDir,"fbDuration") > FB_Time())
{
new string[96];
new sekki=(FB_dini_Int(FB_tbDir,"fbFB_Time")+FB_dini_I nt(FB_tbDir,"fbDuration"))-FB_Time(),minni=sekki/60;
sekki=sekki-minni*60;
format(string,sizeof(string),"You are timebanned from this server. Remaining time: %d minutes %d seconds",minni,sekki);
SendClientMessage(playerid,0xADC7E7FF,string);
Kick(playerid);
} else { FB_dini_Remove(FB_tbDir); }
}
return CallLocalFunction("FB_OnPlayerConnect","i",playeri d);
}
There were remaining time be with hours like that: 01:59:12 is imposible to do that?
Posts: 453
Threads: 173
Joined: Jun 2011
Reputation:
0
Yes but i want to do that:
new seconds = PlayerDB[playerid][jail_time];
And how to make it to write it like that:
01:59:59