Skocz do zawartości

lisek99

Użytkownik
  • Liczba zawartości

    14
  • Rejestracja

  • Ostatnia wizyta

Reputacja

0 Nowy

Ostatnie wizyty

Blok z ostatnimi odwiedzającymi dany profil jest wyłączony i nie jest wyświetlany użytkownikom.

  1. znalazlem dzialajacy plugin do zamkniecia
  2. To niestety nie potrafię jeszcze napisać takiego configu, dopiero się uczę 😕
  3. wszystko fajnie, tylko to nic nie da bo chodzi mi o to ze sie buguje np. raz jest na hudzie od timeleft a napisze jako admin /hudsay i buguje sie na tym napisie od admina i po chwili znika. Nic nie zmieniam w zapisie a sam skacze w roznych miejscach po ekranie
  4. Witam, mam problem z tym pluginem, mianowicie buguje sie na innych hudach(wyswietla sie na innym hudzie, np timeleft) zamiast byc w swojej stałej pozycji #pragma semicolon 1 #define DEBUG #define PLUGIN_AUTHOR "hAlexr" #define PLUGIN_VERSION "1.0.1" #define CHAT_TAGS "[\x04hLiveCredits\x01]" #define SPECMODE_NONE 0 #define SPECMODE_FIRSTPERSON 4 #define SPECMODE_3RDPERSON 5 #define SPECMODE_FREELOOK 6 #include <sourcemod> #include <sdktools> #include <clientprefs> #include <store> ConVar sm_hud_x; ConVar sm_hud_y; ConVar sm_hud_holdTime; ConVar sm_hud_r; ConVar sm_hud_g; ConVar sm_hud_b; ConVar sm_hud_alpha; ConVar sm_hud_effect; ConVar sm_hud_fxTime; ConVar sm_hud_fadein; ConVar sm_hud_fadeOut; ConVar sm_hud_VIPFlag; Handle g_hClientCookie; Handle g_hTimer[MAXPLAYERS + 1]; int g_iClientCredits[MAXPLAYERS + 1]; bool g_bHud[MAXPLAYERS + 1]; #pragma newdecls required public Plugin myinfo = { name = "hLiveCredits", author = PLUGIN_AUTHOR, description = "Shows credits updating in live time zephrus store", version = PLUGIN_VERSION, url = "NUN" }; public void OnPluginStart() { g_hClientCookie = RegClientCookie("CHud", "Saves the value for enabling or disabling the hud", CookieAccess_Private); sm_hud_x = CreateConVar("sm_hud_x", "0.45", "The value of the text in x cordinate plaine", _, true, 0.0, true, 1.0); sm_hud_y = CreateConVar("sm_hud_y", "1.0", "The value of the text in y cordinate plaine", _, true, 0.0, true, 1.0); sm_hud_holdTime = CreateConVar("sm_hud_holdTime", "1.0", "The amount of time the text should be there"); sm_hud_r = CreateConVar("sm_hud_r", "255", "The value for color in RGB format. This ConVar sets the R value", _, true, 0.0, true, 255.0); sm_hud_g = CreateConVar("sm_hud_g", "255", "The value for color in RGB format. This ConVar sets the G value", _, true, 0.0, true, 255.0); sm_hud_b = CreateConVar("sm_hud_b", "255", "The value for color in RGB format. This ConVar sets the B value", _, true, 0.0, true, 255.0); sm_hud_alpha = CreateConVar("sm_hud_alpha", "1.0", "The value to set alpha", _, true, 0.0, true, 1.0); sm_hud_effect = CreateConVar("sm_hud_effect", "0", "The effect to use for the text. (0 and 1 fade in and out. 2 Flicker the text)", _, true, 0.0, true, 2.0); sm_hud_fxTime = CreateConVar("sm_hud_fxTime", "0", "The amount of time the FX should display", _, true, 0.0, true, 60.0); sm_hud_fadein = CreateConVar("sm_hud_fadein", "0.0", "The amount of time the text should fade in", _, true, 0.0, true, 60.0); sm_hud_fadeOut = CreateConVar("sm_hud_fadeOut", "0.0", "The amound of time the text should fade out", _, true, 0.0, true, 60.0); sm_hud_VIPFlag = CreateConVar("sm_hud_VIPFlag", "t", "The flag you have for VIP"); RegConsoleCmd("sm_chud", CMD_CHud, "Enables or disables the hud text"); AutoExecConfig(true, "plugin.hLiveCredits"); SetHudTextParams(sm_hud_x.FloatValue, sm_hud_y.FloatValue, sm_hud_holdTime.FloatValue, sm_hud_r.IntValue, sm_hud_g.IntValue, sm_hud_b.IntValue, sm_hud_alpha.IntValue, sm_hud_effect.IntValue, sm_hud_fxTime.FloatValue, sm_hud_fadein.FloatValue, sm_hud_fadeOut.FloatValue); } public void OnClientCookiesCached(int client) { char cookieValue[32]; GetClientCookie(client, g_hClientCookie, cookieValue, 32); int value = StringToInt(cookieValue); if (value == 1)g_bHud[client] = true; else g_bHud[client] = false; } public Action CMD_CHud(int client, int args) { char enabled[32]; g_bHud[client] = !g_bHud[client]; PrintToChat(client, CHAT_TAGS..." You have %s credits on the hud", (g_bHud[client]) ? "\x02disabled\x01":"\x04enabled\x01"); if (g_bHud[client]) Format(enabled, 32, "1"); else Format(enabled, 32, "0"); SetClientCookie(client, g_hClientCookie, enabled); return Plugin_Handled; } public void OnClientPutInServer(int client) { g_hTimer[client] = CreateTimer(1.0, ShowLiveCredits, client, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE); } public Action ShowLiveCredits(Handle timer, int client) { if (g_bHud[client]) return Plugin_Handled; g_iClientCredits[client] = Store_GetClientCredits(client); char flagString[32]; GetConVarString(sm_hud_VIPFlag, flagString, 32); int flag = ReadFlagString(flagString); int SpecMode = GetEntProp(client, Prop_Send, "m_iObserverMode"); if (SpecMode == SPECMODE_FIRSTPERSON || SpecMode == SPECMODE_3RDPERSON) { int Target = GetEntPropEnt(client, Prop_Send, "m_hObserverTarget"); if (IsValidClient(Target)) { if (GetUserFlagBits(Target) & flag) ShowHudText(client, 5, "Credits: [%i] - VIP", g_iClientCredits[Target]); else ShowHudText(client, 5, "Credits: [%i]", g_iClientCredits[Target]); return Plugin_Handled; } } if (GetUserFlagBits(client) & flag) ShowHudText(client, 5, "Credits: [%i] - VIP", g_iClientCredits[client]); else ShowHudText(client, 5, "Credits: [%i]", g_iClientCredits[client]); return Plugin_Continue; } stock bool IsValidClient(int client) { if (client < 1 || client > MaxClients) return false; if (!IsClientConnected(client)) return false; if (!IsClientInGame(client)) return false; if (IsFakeClient(client)) return false; return true; }
  5. do zamkniecia, problem lezal po stronie hostingu
  6. problem nie rozwiazany zmienilem na zephyrus store
  7. "sourcebans" { "driver" "default" "host" "skillujznami.000webhostapp.com" "database" "baza danych" "user" "nazwa do bazy danych" "pass" "haslo" //"timeout" "0" //"port" "3306" } /** * sourcebans.cfg * * This file contains settings for the SourceBans Source Server Plugin * @author SteamFriends Development Team * @version 0.0.0.$Rev: 74 $ * @copyright SteamFriends (www.steamfriends.com) * @package SourceBans */ "SourceBans" { "Config" { // Website address to tell where the player to go for unban, etc "Website" "https://skillujznami.000webhostapp.com/" // Allow or disallow admins access to addban command "Addban" "1" // Allow or disallow admins access to unban command "Unban" "1" // The Tableprefix you set while installing the webpanel. (default: "sb") "DatabasePrefix" "sb" // How many seconds to wait before retrying when a players ban fails to be checked. Min = 15.0 Max = 60.0 "RetryTime" "45.0" // How often should we process the failed ban queue in minutes "ProcessQueueTime" "5" // Should the plugin automaticaly add the server to sourcebans // (servers without -ip being set on startup need this set to 0) "AutoAddServer" "1" // Enable backing up config files after getting admins from database (1 = enabled, 0 = disabled) "BackupConfigs" "1" // Enable admin part of the plugin (1 = enabled, 0 = disabled) "EnableAdmins" "1" // Require the admin to login once into website "RequireSiteLogin" "1" // This is the ID of this server (Check in the admin panel -> servers to find the ID of this server) "ServerID" "-1" } /* * Generic menu options for if a reason isn't supplied in a ban * Without a supplied reason the ban will never be written to the database */ "BanReasons" { "Hacking" "Hacking" "Exploit" "General Exploit of Game/Map/Server" "TK" "Team Killing" "TF" "Team Flashing" "CommSpam" "Spamming Mic/Chat" "BadSpray" "Inappropriate Spray" "BadLang" "Inappropriate Language" "BadName" "Inappropriate Name" "IgnoreAdmin" "Ignoring Admins" "Stacking" "Team Stacking" "Own Reason" "Own Reason" } /* * Submenu options for when "Hacking" is selected * If "Hacking" is removed from the menu above this will not be accessable */ "HackingReasons" { "Aimbot" "Aimbot" "Antirecoil" "Anti Recoil" "Wallhack" "Wallhack" "Spinhack" "Spinhack" "Speedhack" "Speedhack" "Multi-Hack" "Multi-Hack" "No Smoke" "No Smoke" "No Flash" "No Flash" } /* * Available time for bans. * Permanent (0) available only for admins with access for command "sm_unban" */ "BanTime" { // "time in minutes" "display text" "0" "Permanent" "10" "10 Minutes" "30" "30 Minutes" "60" "1 Hour" "240" "4 Hours" "1440" "1 Day" "10080" "1 Week" // Examples: // "43200" "1 Month" // "525600" "1 Year" } } nie moge podlaczyc serwera pod sourcebans, serwer utworzony na hostingu dodalem serwer w add server (serwer uruchomiony)
  8. po wgraniu pluginu i wejsciu na serwer wyskakuje mi taki komunikat po wpisaniu /store "[Store] Please wait. Your inventory hasn't been fetched yet."
  9. czesc, bylby ktoś tak dobry i przerobil mi config hextag(tag w tabeli) po arene, zeby bylo arena 1 [admin] zamiast samego [admin]? Z góry bardzo dziękuję ;)
  10. Tak jak w temacie, szukam plików na sklep na arenie z ustawieniami aury kolorów na czacie za kredyty itp.
×
×
  • Dodaj nową pozycję...