Jump to content

KenzonAdv

Membru
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by KenzonAdv

  1. +1 pentru munca depusa Respectă și vei fi respectat ! ---------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------- Încearcă să fii un om mai bun ---------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------
  2. +1 Respectă și vei fi respectat ! ---------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------- Încearcă să fii un om mai bun ---------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------
  3. Hmm nu stiu ce sa zic din poza arata destul de ok daca e facut de tine de la mine ai 1+ tin o tot asa.
  4. Da-mi pm este foarte easy de rezolvat! Add me discord: KenzonAdv#7115
  5. Chiar revin cu un edit din partea mea ai 1+
  6. @VLM chiar iti apreciez munca bro tin o tot asa
  7. Este alt gamemode ultima verisune ?
  8. Daca vrei te ajut eu add me discord KenzonAdv#7115.
  9. DNS: RPG.GOLDGAMES.RO IP: 144.76.237.180:7777 Discord: https://discord.gg/qTJPHfU Forum: https://goldgames.ro/forum Panel: In curand on! Server ul dispune de 15 factiunii Sistem de stage. Sisem de crates. Sistem de giftbox. Sistemd de rainbowcar. Sistem de Skins Sistem de Paint Si multe alte sisteme. Vom adauga si Roll sau spin vom vedea.
  10. Unde gasesc gen ai contul blocat 24 de h ?
  11. fatal error 111: user error: Please include <a_npc> or <a_samp> first de ce nu merge?
  12. Salut imi da aceste errori cand il pun pe gm burned C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27224) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27225) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27230) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27283) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27287) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27369) : warning 202: number of arguments does not match definition C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27493) : error 017: undefined symbol "Admins@YSII_Cg" C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27493) : error 017: undefined symbol "Admins@YSII_Ag" C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27573) : error 017: undefined symbol "Admins@YSII_Cg" C:\Users\xxx\Desktop\Gamemode xxx\gamemodes\wa-rpg.pwn(27573) : error 017: undefined symbol "Admins@YSII_Ag" Cod: function SendPanelActions() { if(!cache_num_rows()) return 1; new actionID = cache_get_field_content_int(0, "action_id"), actionUserid = cache_get_field_content_int(0, "action_userid"), actionType = cache_get_field_content_int(0, "action_type"), actionTime = cache_get_field_content_int(0, "action_time"), actionComplaint = cache_get_field_content_int(0, "action_complaint"), actionReason[50], actionBy[24], actionUser[24], formatString[200]; cache_get_field_content(0, "action_reason", actionReason, SQL, 50); cache_get_field_content(0, "action_by", actionBy, SQL, 24); cache_get_field_content(0, "action_user", actionUser, SQL, 24); new id = -1, ip[25]; foreach(new i: Player) { if(IsPlayerLogged == 0) continue; if(PlayerInfo[pSQLID] == actionUserid) { id = i; break; } } // 0 => 'Kick', // 1 => 'Ban', // 2 => 'Mute', // 3 => 'Warn', // 4 => 'DM', // 5 => 'DMP', // 6 => 'FPunish', // 7 => 'FWarn', // 8 => 'Uninvite', // 9 => 'Jail' new complaintString[30]; if(actionComplaint != -1) format(complaintString, 30, " [complaintid: #%d]", actionComplaint); else format(complaintString, 30, " [panel action]"); new reasonText[50]; if(strlen(actionReason) > 1) format(reasonText, 50, ". Motiv: %s", actionReason); switch(actionType) { case 0: { format(formatString, 160, "AdmPanel: %s %s a primit Kick de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); if(id != -1) KickEx(id); } case 1: { if(actionTime > 0) format(formatString, 160, "AdmPanel: %s %s a primit Ban %d zile de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); else format(formatString, 160, "AdmPanel: %s %s a primit Ban Permanent de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); if(actionTime == 0) { mysql_format(SQL, formatString, 160, "UPDATE users SET `Banned`='1', `BBy`='%s', `BReason`='%s' WHERE `ID`='%d'", actionBy, actionReason, actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { PlayerInfo[id][pBanned] = 1; GetPlayerIp(id, ip, sizeof(ip)); // Banlog(ip, actionUser, actionBy, actionReason, 0); Banlog(actionUser, actionBy, actionReason, ip, 0, 0, 1, 0); BanSerial(id, -1, actionReason, actionBy); Ban(id); // KickEx(id); } // else Banlog("Offline", actionUser, actionBy, actionReason, 0); else Banlog(actionUser, actionBy, actionReason, "Offline", 0, 0, 1, 0); } else { new year,month,day; getdate(year, month, day); day += actionTime; 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; } } mysql_format(SQL, formatString, 200, "UPDATE `users` SET `BTemp`='1', `BYear`='%d', `BMonth`='%d', `BDay`='%d', `BBy`='%s', `BReason`='%s' WHERE `ID`='%d'",year, month, day, actionBy, actionReason, actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { GetPlayerIp(id, ip, sizeof(ip)); // Banlog(ip, actionUser, actionBy, actionReason, actionTime); Banlog(actionUser, actionBy, actionReason, ip, actionTime, 0, 0, 0); KickEx(id); } // else Banlog("Offline", actionUser, actionBy, actionReason, actionTime); else Banlog(actionUser, actionBy, actionReason, "Offline", actionTime, 0, 0, 0); } } case 2: { mysql_format(SQL, formatString, 100, "UPDATE `users` SET `Muted`='1', `MuteTime`='%d' WHERE `ID`='%d'", actionTime * 60, actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) PlayerInfo[id][pMuteTime] = actionTime * 60, PlayerInfo[id][pMuted] = 1; format(formatString, 160, "AdmPanel: %s %s a primit Mute pentru %d minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); } case 3: { mysql_format(SQL, formatString, 80, "UPDATE `users` SET `Warns` = `Warns`+1 WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); mysql_format(SQL, formatString, 80, "SELECT `Warns` FROM `users` WHERE `ID` = '%d' LIMIT 1;", actionUserid); mysql_tquery(SQL, formatString, "panelWarn", "ss", actionBy, actionUser); format(formatString, 160, "AdmPanel: %s %s a primit Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); if(id != -1) { PlayerInfo[id][pWarns] ++; if(PlayerInfo[id][pWarns] >= 3) { new year,month,day; getdate(year, month, day); day += 3; 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; } } PlayerInfo[id][pBTemp] = 1; PlayerInfo[id][pBYear] = year; PlayerInfo[id][pBMonth] = month; PlayerInfo[id][pBDay] = day; strmid(PlayerInfo[id][pBBy], actionBy, 0, 24, 255); format(PlayerInfo[id][pBReason], 30, "3/3 warns"); Update(id,pBTempx); Update(id,pBYearx); Update(id,pBMonthx); Update(id,pBDayx); Update(id,pBByx); Update(id,pBReasonx); PlayerInfo[id][pWarns] = 0; Update(id,pWarnsx); GetPlayerIp(id, ip, sizeof(ip)); Banlog(actionUser, actionBy, "3/3 Warnings", ip, 3, 0, 0, 0); KickEx(id); } } } case 4: { format(formatString, 160, "AdmPanel: %s %s a primit Jail (DM) pentru 15 minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `GunLic`='0', `GunLicT`='0', `GunLicS`='5', `Jailed` = '2', `JailTime` = '15' WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { ResetWeapons(id); SetPlayerWantedLevel(id, 6); PlayerInfo[id][pWantedLevel] = 0; Update(id, pWantedLevelx); PlayerInfo[id][pJailed] = 2; PlayerInfo[id][pJailTime] = 15*60; JailPrice[id] = 0; UpdateVar(id, "AJail", 1); PlayerInfo[id][pAJail] = 1; SendClientMessage(id, COLOR_WARNING, "Licenta ta de arme a fost confiscata timp de 5 ore deoarece ai primit jail pentru DM!"); PlayerInfo[id][pGunLicS] = 5; PlayerInfo[id][pGunLic] = 0; PlayerInfo[id][pGunLicT] = 0; ResetPlayerWeapons(id); SpawnPlayer(id); } } case 5: { format(formatString, 160, "AdmPanel: %s %s a primit Jail (DMP) pentru 10 minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Jailed` = '2', `JailTime` = '10' WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { ResetWeapons(id); SetPlayerWantedLevel(id, 6); PlayerInfo[id][pWantedLevel] = 0; Update(id, pWantedLevelx); PlayerInfo[id][pJailed] = 2; PlayerInfo[id][pJailTime] = 10*60; JailPrice[id] = 0; UpdateVar(id, "AJail", 1); PlayerInfo[id][pAJail] = 1; ResetPlayerWeapons(id); SpawnPlayer(id); } } case 6: { format(formatString, 160, "AdmPanel: %s %s a primit %d FPunish de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `FPunish` = '%d' WHERE `ID`='%d'",actionTime, actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { PlayerInfo[id][pFpunish] = actionTime; format(formatString, 100, "Ai primit %d FPunish de la administratorul %s.", actionTime, actionBy); SCM(id, -1, formatString); } } case 7: { format(formatString, 160, "AdmPanel: %s %s a primit un FWarn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `FWarn` = `FWarn`+1 WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelFWarn", "ssdd", actionBy, actionUser, actionUserid, id); } case 8: { format(formatString, 160, "AdmPanel: %s %s a primit Uninvite cu %d FP de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelUninvite", "ssddd", actionBy, actionUser, actionUserid, id, actionTime); } case 9: { format(formatString, 160, "AdmPanel: %s %s a primit AJail pentru %d minute de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionTime, actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Jailed` = '2', `JailTime` = '%d', `WantedLevel` = '0' WHERE `ID`='%d'", actionTime * 60, actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { ResetWeapons(id); SetPlayerArmourEx(id, 0); for(new m = 0; m < 5; m++) SendDeathMessageToPlayer(id, 1001, 1001, 200); PaintType[id] = 0; SetPlayerWantedLevel(id, 6); PlayerInfo[id][pWantedLevel] = 0; PlayerInfo[id][pJailed] = 2; PlayerInfo[id][pJailTime] = actionTime*60; JailPrice[id] = 0; SpawnPlayer(id); format(formatString, sizeof(formatString), "Esti inchis pentru %d minute. Admin: %s", actionTime, actionBy); SendClientMessage(id, COLOR_LIGHTBLUE, formatString); } } /* 10 => 'AWarn', 11 => 'ARemove', 12 => 'HWarn', 13 => 'HRemove', 14 => 'LWarn', 15 => 'LRemove' */ case 10: { // AW format(formatString, 160, "AdmPanel: %s %s a primit un Admin Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `AW` = `AW`+1 WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelAWarn", "sdd", actionBy, actionUserid, id); } case 11: { // AR format(formatString, 160, "AdmPanel: %s %s a primit Remove Admin de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Admin` = '0' WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { format(formatString, 128, "Ai fost demis din functia de Admin de administratorul %s!", actionBy); SCM(id, COLOR_LIGHTBLUE, formatString); PlayerInfo[id][pAdmin] = 0; //TextDrawHideForPlayer(id, reportsTD); Iter_Remove(Admins, id); PlayerInfo[id][pAW] = 0; } } case 12: { // HW format(formatString, 160, "AdmPanel: %s %s a primit un Helper Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `HW` = `HW`+1 WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelHWarn", "sdd", actionBy, actionUserid, id); } case 13: { // HR format(formatString, 160, "AdmPanel: %s %s a primit Remove Helper de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `Helper` = '0' WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); if(id != -1) { format(formatString, 128, "Ai fost demis din functia de Helper de administratorul %s!", actionBy); SCM(id, COLOR_LIGHTBLUE, formatString); PlayerInfo[id][pHelper] = 0; PlayerInfo[id][pHW] = 0; } } case 14: { // LW format(formatString, 160, "AdmPanel: %s %s a primit un Leader Warn de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "UPDATE `users` SET `LW` = `LW`+1 WHERE `ID`='%d'", actionUserid); mysql_tquery(SQL, formatString, "", ""); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelLWarn", "ssdd", actionBy, actionUser, actionUserid, id); } case 15: { // LR format(formatString, 160, "AdmPanel: %s %s a primit Remove Leader de la administratorul %s%s%s.", actionUser, (id == -1) ? ("(neconectat)") : ("(conectat)"), actionBy, reasonText, complaintString), MesajLung2(COLOR_LIGHTRED, formatString); mysql_format(SQL, formatString, 160, "SELECT * FROM `users` WHERE `ID` = '%d' LIMIT 1", actionUserid); mysql_tquery(SQL, formatString, "PanelLeaderRemove", "ssdd", actionBy, actionUser, actionUserid, id); } } mysql_format(SQL, formatString, 150, "UPDATE `inf_actions` SET `sentInfo` = '1' WHERE `action_id` = '%d'", actionID); mysql_tquery(SQL, formatString, "", ""); return 1; } function PanelHWarn(adm[], playerDB, onlinepID) { new hw = cache_get_field_content_int(0, "HW"), str[128]; if(onlinepID != -1) PlayerInfo[onlinepID][pHW] ++; if(hw >= 3) { mysql_format(SQL,str,sizeof(str),"UPDATE `users` SET `Helper`='0', `HW`='0' WHERE `ID`='%d' LIMIT 1", playerDB); mysql_tquery(SQL,str, "", ""); if(onlinepID != -1) { format(str, 128, "Ai fost demis din functia de Helper de administratorul %s deoarece ai acumulat 3 AdminWarns.", adm); SCM(onlinepID, COLOR_LIGHTBLUE, str); PlayerInfo[onlinepID][pHW] = 0; PlayerInfo[onlinepID][pHelper] = 0; } } return 1; } function PanelAWarn(adm[], playerDB, onlinepID) { new aw = cache_get_field_content_int(0, "AW"), str[128]; if(onlinepID != -1) PlayerInfo[onlinepID][pAW] ++; if(aw >= 3) { mysql_format(SQL,str,sizeof(str),"UPDATE `users` SET `Admin`='0', `AW`='0' WHERE `ID`='%d' LIMIT 1", playerDB); mysql_tquery(SQL,str, "", ""); if(onlinepID != -1) { format(str, 128, "Ai fost demis din functia de Admin de administratorul %s deoarece ai acumulat 3 AdminWarns.", adm); SCM(onlinepID, COLOR_LIGHTBLUE, str); PlayerInfo[onlinepID][pAW] = 0; PlayerInfo[onlinepID][pAdmin] = 0; //TextDrawHideForPlayer(onlinepID, reportsTD); Iter_Remove(Admins, onlinepID); } } return 1; } function panelWarn(adm[], actUser[]) { print("panelWarn accesat."); if(cache_num_rows() == 0) return 1; new w = cache_get_field_content_int(0, "Warns"); if(w == 3) { new query[200]; mysql_format(SQL, query, 200, "INSERT INTO `bans` (`PlayerName`, `AdminName`, `Reason`, `IP`, `Days`, `IPBan`, `Permanent`, `Time`, `Active`) VALUES ('%e', '%e', '3/3 Warns', 'Offline', '3', '0', '0', '%d', '1')", actUser, adm, gettime() + 259200); mysql_tquery(SQL, query, "", ""); } print("panelWarn final."); return 1; } function PanelFWarn(adm[], actUser[], playerDB, onlinepID) { new fw = cache_get_field_content_int(0, "FWarn"); new zile = cache_get_field_content_int(0, "Days"); new actrank = cache_get_field_content_int(0, "Rank"); new actmember = cache_get_field_content_int(0, "Member"); new str[150], query[150]; if(fw >= 3) { format(str, 150, "%s a fost scos de %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile); mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB); mysql_tquery(SQL, query,"",""); mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB); mysql_tquery(SQL,str, "", ""); FactionMembers[actmember] --; if(onlinepID != -1) { PlayerInfo[onlinepID][pFACWarns] = 0; PlayerInfo[onlinepID][pMember] = 0; PlayerInfo[onlinepID][pRank] = 0; PlayerInfo[onlinepID][pFpunish] = 20; PlayerInfo[onlinepID][pDays] = 0; PlayerInfo[onlinepID][pChar] = 47; PlayerTextDrawHide(onlinepID, WarTime); SetPlayerSkinEx(onlinepID, 47); SpawnPlayer(onlinepID); format(str, sizeof(str), "Ai fost demis din factiunea %s de AdmBot, motiv: 3/3 FW.", FactionName(actmember)); ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", ""); } } return 1; } function PanelLeaderRemove(adm[], actUser[], playerDB, onlinepID) { new zile = cache_get_field_content_int(0, "Days"); new actrank = cache_get_field_content_int(0, "Rank"); new actmember = cache_get_field_content_int(0, "Member"); new str[150], query[150]; format(str, 150, "%s a fost scos de Adminul %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile); mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB); mysql_tquery(SQL, query,"",""); mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB); mysql_tquery(SQL,str, "", ""); FactionMembers[actmember] --; if(onlinepID != -1) { PlayerInfo[onlinepID][pFACWarns] = 0; PlayerInfo[onlinepID][pMember] = 0; PlayerInfo[onlinepID][pRank] = 0; PlayerInfo[onlinepID][pFpunish] = 20; PlayerInfo[onlinepID][pDays] = 0; PlayerInfo[onlinepID][pChar] = 47; PlayerTextDrawHide(onlinepID, WarTime); SetPlayerSkinEx(onlinepID, 47); SpawnPlayer(onlinepID); format(str, sizeof(str), "Ai fost demis din functia de lider a factiunii %s de %s.", FactionName(actmember), adm); ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", ""); } return 1; } function PanelLWarn(adm[], actUser[], playerDB, onlinepID) { new fw = cache_get_field_content_int(0, "LW"); new zile = cache_get_field_content_int(0, "Days"); new actrank = cache_get_field_content_int(0, "Rank"); new actmember = cache_get_field_content_int(0, "Member"); new str[150], query[150]; if(fw >= 3) { format(str, 150, "%s a fost scos de Adminul %s din %s (rank %d) dupa %d zile (3/3 leader warns).", actUser, adm, FactionName(actmember), actrank, zile); mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB); mysql_tquery(SQL, query,"",""); mysql_format(SQL,str, 150,"UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='20',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", playerDB); mysql_tquery(SQL,str, "", ""); FactionMembers[actmember] --; if(onlinepID != -1) { PlayerInfo[onlinepID][pFACWarns] = 0; PlayerInfo[onlinepID][pMember] = 0; PlayerInfo[onlinepID][pRank] = 0; PlayerInfo[onlinepID][pFpunish] = 20; PlayerInfo[onlinepID][pDays] = 0; PlayerInfo[onlinepID][pChar] = 47; PlayerTextDrawHide(onlinepID, WarTime); SetPlayerSkinEx(onlinepID, 47); SpawnPlayer(onlinepID); format(str, sizeof(str), "Ai fost demis din functia de lider a factiunii %s de AdmBot, motiv: 3/3 Leader Warns.", FactionName(actmember)); ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", ""); } } return 1; } function PanelUninvite(adm[], actUser[], playerDB, onlinepID, fp) { if(cache_num_rows() == 0) return 1; new zile = cache_get_field_content_int(0, "Days"); new actrank = cache_get_field_content_int(0, "Rank"); new actmember = cache_get_field_content_int(0, "Member"); new str[160], query[150]; format(str, 160, "%s a fost scos de %s din %s (rank %d) dupa %d zile.", actUser, adm, FactionName(actmember), actrank, zile); mysql_format(SQL, query, 150, "INSERT INTO faction_logs (`text`,`player`,`leader`) VALUES ('%s','%d','-1')", str, playerDB); mysql_tquery(SQL, query,"",""); mysql_format(SQL, str, 160, "UPDATE `users` SET `Member`='0',`Rank`='0',`CChar`='250',`FPunish`='%d',`FWarn`='0',`Leader`='0',`Days`='0' WHERE `ID`='%d' LIMIT 1", fp, playerDB); mysql_tquery(SQL, str, "", ""); FactionMembers[actmember] --; if(onlinepID != -1) { PlayerInfo[onlinepID][pFACWarns] = 0; PlayerInfo[onlinepID][pMember] = 0; PlayerInfo[onlinepID][pRank] = 0; PlayerInfo[onlinepID][pFpunish] = fp; PlayerInfo[onlinepID][pDays] = 0; PlayerInfo[onlinepID][pChar] = 47; PlayerTextDrawHide(onlinepID, WarTime); SetPlayerSkinEx(onlinepID, 47); SpawnPlayer(onlinepID); format(str, 160, "Ai fost demis din factiunea %s de catre %s [panel action].", FactionName(actmember), adm); ShowPlayerDialog(onlinepID, 0, DIALOG_STYLE_MSGBOX, "Uninvite", str, "Close", ""); } return 1; }
  13. D:\include\lnd\include\sscanf2.inc(33) : fatal error 111: user error: Please include <a_npc> or <a_samp> first. Nu merge bro imi da erroare asta...
  14. Salut ma puteti ajuca la comanda /clothes cand un player intra intr-o factiune si se duce la clothes nu ii intra in clothes ma puteti ajuta ?
  15. Ba eu te respect pentru ce a ce facii felicitarii bro
  16. ionutdrg45 Cum ii stez vip unui player daca nu gasesc?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.