Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

xWangan

Użytkownik
  • Postów

    358
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    27

Treść opublikowana przez xWangan

  1. (2) Zlecę zadanie koderowi Co dokładnie? Widełki ceny?
  2. Można wiedzieć jaka jest różnica pomiędzy korzystaniem z dostępnych vipów gdzie jak się nie mylę są dostępne wszystkie te opcje, a pisaniem nowego? Bo nie potrafię zrozumieć co w nich jest nie tak że potrzebujesz żeby ktoś pisał to od nowa...
  3. Spróbuj tego: #include <sourcemod> #include <sdktools> public Plugin:myinfo = { name = "Connect Player", author = "Bayont", description = "My first plugin", url = "" }; public void OnClientConnected(client) { new String:name[32]; new String:auth[32]; if(IsPlayerRootAdmin(client)) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02Opiekun\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } else if(IsPlayerGenericAdmin(client) && !IsPlayerRootAdmin(client)) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02Admin\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } else if(!IsPlayerGenericAdmin(client) && IsPlayerReservationAdmin(client) && !IsPlayerRootAdmin(client)) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02VIP\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } else { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01] Gracz \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } } bool:IsPlayerGenericAdmin(client) { if (CheckCommandAccess(client, "sm_genericadmin", 0, true)) { return true; } return false; } bool:IsPlayerRootAdmin(client) { if (CheckCommandAccess(client, "sm_rootadmin", 0, true)) { return true; } return false; } bool:IsPlayerReservationAdmin(client) { if (CheckCommandAccess(client, "sm_reservationadmin", 0, true)) { return true; } return false; } Dodaj sobie do pliku admin_overrides: Overrides { /** * By default, commands are registered with three pieces of information: * 1)Command Name (for example, "csdm_enable") * 2)Command Group Name (for example, "CSDM") * 3)Command Level (for example, "changemap") * * You can override the default flags assigned to individual commands or command groups in this way. * To override a group, use the "@" character before the name. Example: * Examples: * "@CSDM" "b" // Override the CSDM group to 'b' flag * "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags * * Note that for overrides, order is important. In the above example, csdm_enable overwrites * any setting that csdm_enable previously had. * * You can make a command completely public by using an empty flag string. */ "sm_rootadmin" "z" "sm_genericadmin" "b" "sm_reservationadmin" "a" } Gdzie zamiast z / b / a możesz wpisać dowolne flagi, na ich podstawie będzie sprawdzało kto ma jakie uprawnienia.
  4. Spróbuj to, aczkolwiek nie gwarantuję że to ma jakikolwiek sens ; p #include <sourcemod> #include <sdktools> public Plugin:myinfo = { name = "Connect Player", author = "Bayont", description = "My first plugin", url = "" }; public void OnClientConnected(client) { new String:name[32]; new String:auth[32]; if (IsPlayerGenericAdmin(client) == false && IsPlayerReservationAdmin(client) == true) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02VIP\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } if (IsPlayerRootAdmin(client) == true) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02Opiekun\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } if (IsPlayerGenericAdmin(client) == true) { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02Admin\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } else { GetClientName(client, name, sizeof(name)); GetClientAuthId(client, AuthId_Engine, auth, sizeof(auth)); PrintToChatAll("\x01 [\x07Informacja\x01] Gracz \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01", name, auth); } } bool:IsPlayerGenericAdmin(client) { if (CheckCommandAccess(client, "generic_admin", ADMFLAG_GENERIC, false)) { return true; } return false; } bool:IsPlayerRootAdmin(client) { if (CheckCommandAccess(client, "root_admin", ADMFLAG_ROOT, false)) { return true; } return false; } bool:IsPlayerReservationAdmin(client) { if (CheckCommandAccess(client, "reservation_admin", ADMFLAG_RESERVATION, false)) { return true; } return false; }
  5. Aż tak trudno poświęcić minutę i pomyśleć, że trzeba to skompilować? Czasami ludzie mnie aż zadziwiają swoją ignorancją, najlepiej wszystko na talerzyku podać... doublejump.smx
  6. Spróbuj skorzystać z tego: // Original Script from Peagus // http://forums.alliedmods.net/showthread.php?p=895212 #include <sourcemod> #include <sdktools> #include <sdkhooks> #define PLUGIN_VERSION "1.3OPRC" new g_iJumps[MAXPLAYERS+1] new g_iJumpMax new g_fLastButtons[MAXPLAYERS+1] new g_fLastFlags[MAXPLAYERS+1] new clientlevel[MAXPLAYERS+1] new Handle:g_cvJumpBoost = INVALID_HANDLE new Handle:g_cvJumpEnable = INVALID_HANDLE new Handle:g_cvJumpMax = INVALID_HANDLE new Handle:g_cvJumpKnife = INVALID_HANDLE new bool:g_bDoubleJump = true new Float:g_flBoost = 250.0 public Plugin:myinfo = { name = "CS:GO Double Jump", author = "Darkranger,(original Script from Peagus)", description = "Double Jump for all Players!", version = PLUGIN_VERSION, url = "http://dark.asmodis.at" } public OnPluginStart() { CreateConVar("csgo_doublejump_version", PLUGIN_VERSION, "CS:GO Double Jump Version", FCVAR_PLUGIN | FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_DONTRECORD) g_cvJumpKnife = CreateConVar("csgo_doublejump_knife", "1", "disable(0) / enable(1) double-jumping only on Knife Level for AR (GunGame)",FCVAR_PLUGIN, true, 0.0, true, 1.0) g_cvJumpEnable = CreateConVar("csgo_doublejump_enabled", "1", "disable(0) / enable(1) double-jumping",FCVAR_PLUGIN) g_cvJumpBoost = CreateConVar("csgo_doublejump_boost", "300.0", "The amount of vertical boost to apply to double jumps",FCVAR_PLUGIN, true, 260.0, true, 500.0) g_cvJumpMax = CreateConVar("csgo_doublejump_max", "1", "The maximum number of re-jumps allowed while already jumping",FCVAR_PLUGIN, true, 1.0, true, 5.0) AutoExecConfig(true, "csgo_doublejump", "csgo_doublejump") HookConVarChange(g_cvJumpBoost, convar_ChangeBoost) HookConVarChange(g_cvJumpEnable, convar_ChangeEnable) HookConVarChange(g_cvJumpMax, convar_ChangeMax) g_bDoubleJump = GetConVarBool(g_cvJumpEnable) g_flBoost = GetConVarFloat(g_cvJumpBoost) g_iJumpMax = GetConVarInt(g_cvJumpMax) HookEventEx("player_spawn", OnPlayerSpawn, EventHookMode_Post) } public OnClientPutInServer(client) { SDKHook(client, SDKHook_WeaponEquipPost, OnWeaponEquipPost) CreateTimer(20.0, Announce, client, TIMER_FLAG_NO_MAPCHANGE) CreateTimer(35.0, Announce, client, TIMER_FLAG_NO_MAPCHANGE) } public OnWeaponEquipPost(client, weapon) { clientlevel[client] = 0 if (g_cvJumpKnife) { if(LastLevel(client) == true) { clientlevel[client] = 1 } } } public OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")) clientlevel[client] = 0 if (GetConVarInt(g_cvJumpKnife) == 1) { if(LastLevel(client) == true) { clientlevel[client] = 1 } } } public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) { if (g_bDoubleJump && HasAccess(client)) //if ((g_bDoubleJump) && (buttons & IN_FORWARD)) { if ((g_cvJumpKnife) && ((clientlevel[client]) == 1)) { DoubleJump(client) } if (GetConVarInt(g_cvJumpKnife) == 0) { DoubleJump(client) } } } stock DoubleJump(const any:client) { new fCurFlags = GetEntityFlags(client), fCurButtons = GetClientButtons(client) if (g_fLastFlags[client] & FL_ONGROUND) { if (!(fCurFlags & FL_ONGROUND) && !(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { OriginalJump(client) } } else if (fCurFlags & FL_ONGROUND) { Landed(client) } else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) { ReJump(client) } g_fLastFlags[client] = fCurFlags g_fLastButtons[client] = fCurButtons } stock OriginalJump(const any:client) { g_iJumps[client]++ } stock Landed(const any:client) { g_iJumps[client] = 0 } stock ReJump(const any:client) { if ( 1 <= g_iJumps[client] <= g_iJumpMax) { g_iJumps[client]++ decl Float:vVel[3] GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel) vVel[2] = g_flBoost TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel) } } public convar_ChangeBoost(Handle:convar, const String:oldVal[], const String:newVal[]) { g_flBoost = StringToFloat(newVal) } public convar_ChangeEnable(Handle:convar, const String:oldVal[], const String:newVal[]) { if (StringToInt(newVal) >= 1) { g_bDoubleJump = true } else { g_bDoubleJump = false } } public convar_ChangeMax(Handle:convar, const String:oldVal[], const String:newVal[]) { g_iJumpMax = StringToInt(newVal) } public bool:LastLevel(client) { if(IsValidClient(client) && IsPlayerAlive(client)) { new weapon_count = 0 for(new i = 0; i <= 4; i++) { new wpn = GetPlayerWeaponSlot(client, i) if(wpn != -1) { weapon_count++ } } if(weapon_count == 1) { // hat nur das Messer! return true } else { // noch weitere Waffen! return false } } return false } public bool:IsValidClient(client) { if ( !( 1 <= client <= MaxClients ) || !IsClientInGame(client) ) { return false } return true } public Action:Announce(Handle:timer, any:client) { if (GetConVarInt(g_cvJumpKnife) == 1) { if(IsClientInGame(client) && !IsFakeClient(client)) PrintToChat(client, "Double Jump on Knife Level is Enabled!") } if (GetConVarInt(g_cvJumpKnife) == 0) { if(IsClientInGame(client) && !IsFakeClient(client)) PrintToChat(client, "Double Jump is Enabled!") } return Plugin_Handled } stock bool:HasAccess(client) { if(CheckCommandAccess(client, "Admin_Generic", ADMFLAG_CUSTOM1, false)) { return true; } return false; }
  7. #include <sourcemod> #include <sdktools> public Plugin:myinfo = { name = "Connect Player", author = "Anonymous", description = "My first plugin", url = "" }; public void OnClientConnected(client) { new String:name[32], String:authid[32]; if (IsPlayerGenericAdmin(client)) { GetClientName(client, name, sizeof(name)); GetClientAuthString(client, authid, sizeof(authid)); PrintToChatAll("\x01 [\x07Informacja\x01]\x02Admin\x01 \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01%", name, authid); } else { GetClientName(client, name, sizeof(name)); GetClientAuthString(client, authid, sizeof(authid)); PrintToChatAll("\x01 [\x07Informacja\x01] \x04%s\x01 (\x05%s\x01) \x03dołączył do więzienia\x01%", name, authid); } } bool:IsPlayerGenericAdmin(client) { if (CheckCommandAccess(client, "generic_admin", ADMFLAG_GENERIC, false)) { return true; } return false; }
  8. Z tego co autor pisze nie jest pewien, ale w zamian polecam [SMJT] SM Jail Teams (Ratio Balance) - AlliedModders Prosty w konfiguracji cvarami, działa w CS:GO.
  9. Let me guess, ustaw odpowiedni mapcycle lub liste map które mogą być wybrane w głosowaniu (Zależy co masz)...
  10. Także jestem tym zainteresowany, z tego co kojarzę dotychczas nie było opcji przekierowywania graczy(??)...
  11. Nie wystarczy korzystać z komendy sm_kick czy też na czacie !kick, przecież możesz tam wpisywać powody, po co dodatkowo obciążać serwer ; p
  12. Jak dla mnie pomiędzy Hostplay'em a liveserver'em brałbym liveserver, chociaż warto też pomyśleć o wspomnianej przez Ciebie pukawce. Z tego co informują przenoszą część swojej infrastruktury do eTOP'u, więc zawsze jest to jakiś krok do przodu.
  13. Wpisałeś komendę: sm_sjd w konsolę potrzebną do otwarcia menu?
  14. Ale to jest przecież podstawowe menu, a każde kolejne rzeczy do niego można samodzielnie dodawać. Jak to robisz źle to się nie dziw że potem masz to tak pobugowane...
  15. Ale ja nawet nie wiem o czym ty do mnie mówisz człowieku, jaki panel admina, o co Ci chodzi... Dla mnie podstawowe funkcje administracyjne jakie umożliwia sourcemod + sourcebans + sourcecomms są wystarczające..
  16. Overrides { /** * By default, commands are registered with three pieces of information: * 1)Command Name (for example, "csdm_enable") * 2)Command Group Name (for example, "CSDM") * 3)Command Level (for example, "changemap") * * You can override the default flags assigned to individual commands or command groups in this way. * To override a group, use the "@" character before the name. Example: * Examples: * "@CSDM" "b" // Override the CSDM group to 'b' flag * "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags * * Note that for overrides, order is important. In the above example, csdm_enable overwrites * any setting that csdm_enable previously had. * * You can make a command completely public by using an empty flag string. */ "sm_vip" "o" "sm_weapon_restrict_immunity" "a" } I powinno działać.
  17. AlliedModders - View Single Post - [CS:S] RankMe (Version 2.8.3 - 19 Jul 12)
  18. Ale jaki panel admina, jakiekolwiek informacje, cokolwiek...
  19. Z poprzednich tematów wynika, że chodzi o jego serwer only de_dust2. Pluginy itp: Wklejka #2166395 ? Wklej.org
  20. "9" { "chat" "[***] {green}Aby wybrac skin postaci wpisz !skin w czat" "flags" "" { Rozpoczynamy za pomocą {, natomiast kończymy za pomocą }. Masz tak nawet w kilku pierwszych, dla przykładu: "1" { "chat" "[***] {darkred}Forum Serwera:{darkblue} ****.pl" }
  21. Może jakiekolwiek informacje? Jakie pluginy dokładnie, co, gdzie, jak? Nie każdy plugin generuje sobie plik konfiguracyjny...
  22. [CS:GO/CS:S] ServerAdvertisement - MultiLang | *UPDATED 13.12.2015 - AlliedModders
  23. w folderze translations, w pliku multi1v1.phrases.txt "ArenaClanTag" { "pl" "Arena {1}" } Gdzie zamiast arena mozesz sobie wpisać cokolwiek, np. Miejsce
×
×
  • Dodaj nową pozycję...