-
-
Save anonymous/ff1d1fa775716a225bad63f4afb5ac8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case D_LOGIN: | |
if(fexist(PBanPath(playerid))) | |
{ | |
INI_ParseFile(PBanPath(playerid), "LoadPBan_%s", .bExtra = true, .extra = playerid); | |
if(PBanInfo[playerid][pBanDani] > 0) | |
{ | |
new dani, god, mje; | |
getdate(god, mje, dani); | |
if(PBanInfo[playerid][pBanDani] > dani) | |
{ | |
if(PBanInfo[playerid][pBanMesec] == mje) | |
{ | |
new adminCmdsList[1080]; | |
new strings[308]; | |
strdel(adminCmdsList, 0, sizeof(adminCmdsList)); | |
strcat(adminCmdsList, "{FF0000}\tPrivremeno ste banovani...\n\n"); | |
format(strings, sizeof(strings), "{FFFFFF}Banovani ste sa ovog servera do {FF9900}%d/%d/%d", PBanInfo[playerid][pBanDani], mje, god); | |
strcat(adminCmdsList, strings); | |
strcat(adminCmdsList, "\n{FFFFFF}U koliko mislite da je doslo do greske\nZatrazite unban na forumu.\n\nForum: {FF9900}www.UG-RP.info"); | |
g_SPD(playerid, 46, DIALOG_STYLE_MSGBOX, "{FF9900}Ban info\n", adminCmdsList, "Uredu", ""); | |
SetTimerEx("KickTajmer", 20, false, "i", playerid); | |
} | |
if(PBanInfo[playerid][pBanMesec] > mje) | |
{ | |
new adminCmdsList[1080]; | |
new strings[308]; | |
strdel(adminCmdsList, 0, sizeof(adminCmdsList)); | |
strcat(adminCmdsList, "{FF0000}\tPrivremeno ste banovani...\n\n"); | |
format(strings, sizeof(strings), "\n{FFFFFF}Banovani ste sa ovog servera do {FF9900}%d/%d/%d", PBanInfo[playerid][pBanDani], PBanInfo[playerid][pBanMesec], god); | |
strcat(adminCmdsList, strings); | |
strcat(adminCmdsList, "\n{FFFFFF}U koliko mislite da je doslo do greske\nZatrazite unban na forumu.\n\nForum: {FF9900}www.UG-RP.info"); | |
g_SPD(playerid, 46, DIALOG_STYLE_MSGBOX, "{FF9900}Ban info\n", adminCmdsList, "Uredu", ""); | |
SetTimerEx("KickTajmer", 20, false, "i", playerid); | |
} | |
if(PBanInfo[playerid][pBanGodina] > god) | |
{ | |
new adminCmdsList[1080]; | |
new strings[308]; | |
strdel(adminCmdsList, 0, sizeof(adminCmdsList)); | |
strcat(adminCmdsList, "{FF0000}\tPrivremeno ste banovani...\n\n"); | |
format(strings, sizeof(strings), "{FFFFFF}Banovani ste sa ovog servera do {FF9900}%d/%d/%d", PBanInfo[playerid][pBanDani], PBanInfo[playerid][pBanMesec], PBanInfo[playerid][pBanGodina]); | |
strcat(adminCmdsList, strings); | |
strcat(adminCmdsList, "\n{FFFFFF}U koliko mislite da je doslo do greske\nZatrazite unban na forumu.\n\nForum: {FF9900}www.UG-RP.info"); | |
g_SPD(playerid, 46, DIALOG_STYLE_MSGBOX, "{FF9900}Ban info\n", adminCmdsList, "Uredu", ""); | |
SetTimerEx("KickTajmer", 20, false, "i", playerid); | |
} | |
} | |
} | |
} | |
if(PBanInfo[playerid][pBanDani] > 0) | |
{ | |
new dani, god, mje; | |
getdate(god, mje, dani); | |
if(PBanInfo[playerid][pBanDani] < dani) | |
{ | |
PBanInfo[playerid][pBanDani] = 0; | |
} | |
else | |
{ | |
if(!response) return Kick(playerid); | |
if(response) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment