Jump to content

StrikerM

Membru
  • Content Count

    444
  • Joined

  • Last visited

  • Days Won

    20

StrikerM last won the day on June 30

StrikerM had the most liked content!

Community Reputation

67 Excelent

4 Followers

About StrikerM

  • Rank
    Membru senior
  • Birthday 07/11/1995

Profile Information

  • Sex
    Masculin
  • Name in game
    StrikerM
  • Level of knowledge
    Experimentat

Recent Profile Visitors

1,363 profile views
  1. Trebuie sa il definesti in totalitate din textdraw global in unu per player.
  2. Salut, nu o zic cu rautate ... dar citeste inainte sa raspunzi, i-am explicat deja ce sa faca. @BaFFyJunior Salut, daca le dai mura in gura nu o sa invete niciodata si mereu o sa ceara asa scripturi, mai sus eu i-am explicat exact ce sa faca. @NuamNume Salut, ai mutat sub onplayerclicktextdraw asa ca o sa folosesti clickedid inloc de playertextid.
  3. Folosesti OnPlayerClickPlayerTextDraw Dar tu ai un textdraw global. Adauga if(playertextid == LoginPTD[1]) ShowPlayerDialog(playerid, DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD, "Login", "Insert your password in the dialog below!", "Login", "Quit"); Sub OnPlayerClickTextDraw Dar te sfatuiesc sa folosesti textdraw per player si nu globale, doar textdraw-urile de tip nume/logo/ceas poti sa le lasi pe global, tot ce se poate selecta sau schimba din gamemode si are o eficienta mai mare precum asta pot aparea probleme, daca sunt +2 jucatori eu pot selecta si sa ne faca actiunea amandurora.
  4. Salut. La linia 11 unde ai 'new' incearca sa ai spatiu intre 'new si incercariparola'. new incercariParola[MAX_PLAYERS]; Si la linia 66 la final de tot pune punct si virgula. ;
  5. @HPQ123 Un sfat pentru a te ajuta sa gasesti oameni care sa iti cumpere serviciile ar fi ceva mai multa activitate in rubrica de ajutor. Succes.
  6. @LucaPawnL Ii dai bine dar el vrea sa umble dupa persoana cautata, adica faci un timer si ii tot pui CP pe el si daca intra in HQ ii pui in fata la intrare.
  7. Uite arhiva cu YSI din folderul pawno > include YSI.rar
  8. Majoritatea scripterilor ce au ceva cunostinte si te pot ajuta doresc plata. Baieti seriosi se gasesc dar ca ideie majoritatea daca vad ca nu ai macar 40-50+ nu prea se obosesc sa ajute.
  9. In folderul include din compilator ar trebui sa ai un folder numit YSI_Data si in ala sa fie un includ numit y_iterate.inc, il poti gasi pe internet sau in orice alt gamemode de la rubrica 'gamemodeuri'.
  10. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); mysql_format(SQL, gString, sizeof(gString), "SELECT * FROM `users` WHERE `Owner` = '%s'", GetName(playerid)); new Cache:result = mysql_query(SQL, gString); cache_get_row_count(rows); for(new i; i < rows; i++) { cache_get_field_content_int(i, "Admin", padmin); } if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); return true; }
  11. Daca nici asa nu merge, nu ma bag e prea imensa comanda oricum .. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); cache_get_row_count(rows); for(new i; i < rows; i++) { cache_get_field_content_int(i, "Admin", padmin); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); } return true; }
  12. Vezi acuma, fi sigur ca are admin persoana aia. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); cache_get_row_count(rows); for(new i; i < rows; i++) { cache_get_field_content_int(i, "Admin", padmin); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); } if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); return true; }
  13. Functioneaza sau te lasa sa banezi si jucatori cu admin mai mare ?
  14. Asa ar trebui sa mearga. YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); cache_get_row_count(rows); for(new i; i < rows; i++) { padmin = cache_get_field_content_int(i, "Admin"); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); } if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); return true; }
  15. @TheGodfather Vezi acuma YCMD:bano(playerid, params[], help) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,COLOR_WHITE,AdminOnly); if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0); new giveplayerid[25],days,reason[128],string[128],cont; if(sscanf(params, "s[25]ds[128]", giveplayerid, days,reason)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/bano <name> <0 = permanent/days> <reason>"); if(FaceReclama(reason)) return RemoveFunction(playerid, reason); new userID = GetPlayerID(giveplayerid), padmin, rows; if(userID != INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel jucator este deja conectat!"); cont = MySQLCheckAccount(giveplayerid); if(cont == 0) return SCM(playerid,COLOR_ERROR,"Eroare:{FFFFFF} Acest cont nu a fost gasit in baza de date!"); GetPlayerName(playerid, name, sizeof name); cache_get_row_count(rows); for(new i; i < rows; i++) { padmin = cache_get_field_content_int(i, "Admin"); if(PlayerInfo[playerid][pAdmin] < padmin) return SCM(playerid, -1, "* Nu poti bana un jucator cu grad mai mare ca al tau."); if(days > 0) { new year,month,day; getdate(year, month, day); day += days; if(IsMonth31(month)) { if(day > 31) { month += 1; if(month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if(!IsMonth31(month)) { if(day > 30) { month += 1; if(month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if(!IsMonth31(month) && IsMonth29(year) && month == 2) { if(day > 29) { month += 1; if(month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if(!IsMonth31(month) && !IsMonth29(year) && month == 2) { if(day > 28) { month += 1; if(month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } DeelayCommand[playerid][0] = 10; if(days == 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } else if(days > 1) { format(string,128,"Offline: %s has been banned by %s for %d days, reason: %s",giveplayerid,name,days,reason); SCMTA(COLOR_LIGHTRED,string); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'",year, month, day, name, reason, giveplayerid); mysql_tquery(SQL ,szQuery, "", ""); } else if(days == 0) { new szQuery[256]; mysql_format(SQL, szQuery,sizeof(szQuery),"UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `name`='%s'", GetName(playerid), reason, giveplayerid); mysql_tquery(SQL,szQuery, "", ""); mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); if(strfind(reason, "Silent", true) != -1) { format(string, sizeof(string), "Silent: %s (offline) has been banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SendAdminMessage(COLOR_LIGHTRED, string, 1); } else { format(string, sizeof(string), "Offline: %s has been permanent banned by %s, reason: %s", giveplayerid, GetName(playerid),reason); SCMTA(COLOR_LIGHTRED, string); } } else return true; Banlog("Offline",giveplayerid,GetName(playerid),reason,days); PlayerInfo[playerid][pHelpedPlayers] += 2; PlayerInfo[playerid][pHelpedPlayersToday] += 2; new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); } return true; }
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.