Skip to content

Instantly share code, notes, and snippets.

/CMD Secret

Created April 30, 2017 23:33
Show Gist options
  • Save anonymous/ff1d1fa775716a225bad63f4afb5ac8d to your computer and use it in GitHub Desktop.
Save anonymous/ff1d1fa775716a225bad63f4afb5ac8d to your computer and use it in GitHub Desktop.
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