[FilterScript] Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates]
#35

After i Download Your Script Bans its Nice Script But There Error After i Download The TimeStampToDate.inc
There 4 Errors
but i fixed 3
Quote:

warning 217: loose indentation

but the last one not fixing its sucks
Quote:

(244) : warning 217: loose indentation

line 244 =
Quote:

return 1;}

this all line in connect
Quote:

public OnPlayerConnect(playerid)
{

if(fexist(UserBanPath(playerid)))
{
INI_ParseFile(UserBanPath(playerid), "LoadBanUser_%s", .bExtra = true, .extra = playerid);

if(PlayerInfo[playerid][pBanPerm]==1)
{new reso[256];
SendClientMessage(playerid,-1,"{85BB65}You are permanently Banned from this server by Administration");
format(reso,sizeof(reso),"{85BB65}Reason: {f0f000}%s",PlayerInfo[playerid][pBanres]);
SendClientMessage(playerid,-1,reso);
format(reso,sizeof(reso),"{85BB65}Banning Admin: {f0f000}%s",PlayerInfo[playerid][pBanAdmin]);
SendClientMessage(playerid,-1,reso);
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else
{
if(gettime() > PlayerInfo[playerid][pBanexp])
{ fremove(UserBanPath(playerid));
fremove(UserIPPath(playerid));
SendClientMessage(playerid,-1,"{00cc00}You have been unbanned!!!!");
}
else
{
new d,m,y,h,mi,s;
TimestampToDate(PlayerInfo[playerid][pBanexp],y,m,d,h,mi,s,GMT_H,GMT_M);
new str[540];
format(str,sizeof(str),"{85BB65}This Account Has Been Banned By The Adminstration Until {f0f000}%i-%i-%i[Date format : dd/mm/yyyy]",d,m,y);
SendClientMessage(playerid,-1,str);
format(str,sizeof(str),"{85BB65}Expires on[TIME] -- {f0f000}%i-%i[Time Format: 24 Hour Clock]",h,mi);
SendClientMessage(playerid, -1, str);
format(str,sizeof(str),"{85BB65}Reason -- {f0f000}%s",PlayerInfo[playerid][pBanres]);
SendClientMessage(playerid, -1, str);
format(str,sizeof(str),"{85BB65}Banning Admin -- {f0f000}%s",PlayerInfo[playerid][pBanAdmin]);
SendClientMessage(playerid, -1, str);
SetTimerEx("KickPlayer",100,false,"i",playerid);
}}}

else if(fexist(UserIPPath(playerid)))
{
INI_ParseFile(UserIPPath(playerid), "LoadIPUser_%s", .bExtra = true, .extra = playerid);
if(PlayerInfo[playerid][pBanPerm]==1)
{ new reso[256];
SendClientMessage(playerid,-1,"{85BB65}This IP is permanently Banned from this server by Administration");
format(reso,sizeof(reso),"{85BB65}Originally Banned Player: {f0f000}%s",PlayerInfo[playerid][pBanIPP]);
SendClientMessage(playerid,-1,reso);
format(reso,sizeof(reso),"{85BB65}Reason: {f0f000}%s",PlayerInfo[playerid][pBanres]);
SendClientMessage(playerid,-1,reso);
format(reso,sizeof(reso),"{85BB65}Banning Admin: {f0f000}%s",PlayerInfo[playerid][pBanAdmin]);
SendClientMessage(playerid,-1,reso);
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
else {
if(gettime() > PlayerInfo[playerid][pBanexp])
{ new pat[100];
fremove(UserIPPath(playerid));
format(pat,sizeof(pat),"Bans/%s.ini",PlayerInfo[playerid][pBanIPP]);
fremove(pat);
SendClientMessage(playerid,-1,"{00cc00}This IP was banned but as now the expire time has passed this IP has been unbanned.");
}
else
{
new d,m,y,h,mi,s;
TimestampToDate(PlayerInfo[playerid][pBanexp],y,m,d,h,mi,s,GMT_H,GMT_M);
new str[540];
format(str,sizeof(str),"{85BB65}This IP Has Been Banned By The Adminstration Until {f0f000}%i-%i-%i[Date format : dd/mm/yyyy]",d,m,y);
SendClientMessage(playerid,-1,str);
format(str,sizeof(str),"{85BB65}Expires on[TIME] -- {f0f000}%i-%i[Time Format: 24 Hour Clock]",h,mi);
SendClientMessage(playerid, -1, str);
format(str,sizeof(str),"{85BB65}Originally Banned Player -- {f0f000}%s",PlayerInfo[playerid][pBanIPP]);
SendClientMessage(playerid, -1, str);
format(str,sizeof(str),"{85BB65}Reason -- {f0f000}%s",PlayerInfo[playerid][pBanres]);
SendClientMessage(playerid, -1, str);
format(str,sizeof(str),"{85BB65}Banning Admin -- {f0f000}%s",PlayerInfo[playerid][pBanAdmin]);
SendClientMessage(playerid, -1, str);
SetTimerEx("KickPlayer",100,false,"i",playerid);
}}}
return 1;}

Reply


Messages In This Thread
Temp Ban System using y_ini V 3.1 - by BroZeus - 30.03.2014, 14:25
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by JeaSon - 30.03.2014, 15:07
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by Diogo123 - 30.03.2014, 15:20
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNiazi - 30.03.2014, 16:29
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by NinjaWarrior - 30.03.2014, 20:57
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 31.03.2014, 07:17
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by Team_PRO - 31.03.2014, 12:11
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNiazi - 31.03.2014, 14:25
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 31.03.2014, 15:47
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNiazi - 31.03.2014, 18:28
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 01.04.2014, 04:38
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 01.04.2014, 07:15
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 01.04.2014, 09:25
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 01.04.2014, 10:09
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 19.04.2014, 11:00
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 31.05.2014, 07:45
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by iRaiDeN - 31.05.2014, 07:58
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 31.05.2014, 08:31
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AviPeker - 31.05.2014, 08:42
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 31.05.2014, 12:23
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 08.08.2014, 13:23
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 08.08.2014, 13:52
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 08.08.2014, 14:08
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 08.08.2014, 14:13
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by SHE790 - 08.08.2014, 15:17
Re : Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AmirRFCNR - 26.09.2014, 11:09
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by GGRoleplay - 27.09.2014, 19:34
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by VenomMancer - 28.09.2014, 02:20
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by WSMPenguin - 28.09.2014, 05:21
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by Ady_Ro - 30.09.2014, 19:07
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by BroZeus - 01.10.2014, 05:50
Re: Temp Ban System using y_ini V 3.1 - by Carlozki - 01.10.2014, 12:00
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by AroseKhanNaizi - 04.10.2014, 14:26
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by JSOReborn - 06.10.2014, 09:40
Re: Temp Ban System using y_ini V 3.0 [Now with ip ban feature and amny other updates] - by astanalol00 - 06.10.2014, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)