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

Zhp.

Użytkownik
  • Postów

    98
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    1

Treść opublikowana przez Zhp.

  1. Witam chciałbym wyciągnąć plugin z silnika BB jakieś pomysły propozycje jest to link do silnika https://forums.alliedmods.net/showthread.php?t=277538 sp pliku (bb_grenades.sp) #define FreezeTime 5.0 #define FreezeDistance 220.0 #define FreezeColor {0,186,247,255} #define FragColor {255,75,75,255} public void Grenades_OnPluginStart() { HookEvent("decoy_started", Event_DecoyStarted); HookEvent("hegrenade_detonate", Event_GrenadeStarted, EventHookMode_Pre); AddNormalSoundHook(GrenadeSoundHook); } //Create trail on grenade throw public void OnEntityCreated(int entity, const char[] classname) { if(StrEqual(classname, "decoy_projectile")) SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawned); else if(StrEqual(classname, "hegrenade_projectile")) SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawned); } public void OnEntitySpawned(int iGrenade) { char classname[50]; GetEntityClassname(iGrenade, classname, sizeof(classname)); if(StrEqual(classname, "decoy_projectile")) { int client = GetEntPropEnt(iGrenade, Prop_Send, "m_hOwnerEntity"); TE_SetupBeamFollow(iGrenade, BeamSprite, 0, 1.0, 1.0, 10.0, 5, FreezeColor); TE_SendToAll(); RemovePlayerGrenade(client, "weapon_decoy"); } else if(StrEqual(classname, "hegrenade_projectile")) { int client = GetEntPropEnt(iGrenade, Prop_Send, "m_hOwnerEntity"); TE_SetupBeamFollow(iGrenade, BeamSprite, 0, 1.0, 1.0, 10.0, 5, FragColor); TE_SendToAll(); RemovePlayerGrenade(client, "weapon_hegrenade"); } } public void RemovePlayerGrenade(int client, char classname[50]) { if(client >= 1) { int grenade = Client_GetWeapon(client, classname); if(grenade != -1) { DataPack pack; CreateDataTimer(1.0, RemoveGrenade, pack); pack.WriteCell(client); pack.WriteCell(grenade); } } } public Action RemoveGrenade(Handle tmr, Handle pack) { ResetPack(pack); int client = ReadPackCell(pack); int grenade = ReadPackCell(pack); RemovePlayerItem(client, grenade); AcceptEntityInput(grenade, "Kill"); } //When grenade explodes public Action Event_DecoyStarted(Handle event, const char[] name, bool dontBroadcast) { int entity = GetEventInt(event, "entityid"); float org[3]; GetEntPropVector(entity, Prop_Send, "m_vecOrigin", org); //Create ring TE_SetupBeamRingPoint(org, 10.0, FreezeDistance, BeamSprite, BeamSprite, 1, 1, 0.2, 10.0, 0.1, FreezeColor, 0, 0); TE_SendToAll(); //Create light //LightCreate(org); DataPack pack; CreateDataTimer(0.2, CreateLight, pack); pack.WriteFloat(org[0]); pack.WriteFloat(org[1]); pack.WriteFloat(org[2]); //Freeze players FreezePlayers(org); //Create freeze sound EmitSoundToAllAny(SOUND_FREEZE); //Kill entitys AcceptEntityInput(entity, "kill"); //AcceptEntityInput(soundEntity, "kill"); return Plugin_Handled; } public Action Event_GrenadeStarted(Handle event, const char[] name, bool dontBroadcast) { int entity = GetEventInt(event, "entityid"); SetEntPropFloat(entity, Prop_Send, "m_flDamage", 700.0); SetEntPropFloat(entity, Prop_Send, "m_DmgRadius", 170.0); //Create ring float org[3]; GetEntPropVector(entity, Prop_Send, "m_vecOrigin", org); TE_SetupBeamRingPoint(org, 10.0, FreezeDistance, BeamSprite, BeamSprite, 1, 1, 0.2, 10.0, 0.1, FragColor, 0, 0); TE_SendToAll(); BurnPlayers(org); } public Action CreateLight(Handle timer, Handle pack) { float org[3]; ResetPack(pack); org[0] = ReadPackFloat(pack); org[1] = ReadPackFloat(pack); org[2] = ReadPackFloat(pack); LightCreate(org); } void BurnPlayers(float org[3]) { LoopAllPlayers(i) { if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == ZOMBIES) { float PlayerOrg[3]; GetClientAbsOrigin(i, PlayerOrg); if (GetVectorDistance(org, PlayerOrg) <= FreezeDistance - 20.0) { IgniteEntity(i, 19.8); float speed; speed = GetClientSpeed(i); SetClientSpeed(i, 0.8); DataPack pack; CreateDataTimer(19.8, Resetspeed, pack); pack.WriteCell(i); pack.WriteFloat(speed); } } } } public Action Resetspeed(Handle tmr, Handle pack) { float speed; ResetPack(pack); int client = ReadPackCell(pack); speed = ReadPackFloat(pack); SetClientSpeed(client, speed); } void FreezePlayers(float org[3]) { LoopAllPlayers(i) { if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == ZOMBIES) { float PlayerOrg[3]; GetClientAbsOrigin(i, PlayerOrg); if (GetVectorDistance(org, PlayerOrg) <= FreezeDistance - 20.0) { SetEntityMoveType(i, MOVETYPE_NONE); Entity_SetRenderColor(i, 0, 186, 247, 255); CreateTimer(FreezeTime, ResetMovetype, i); } } } } public Action ResetMovetype(Handle tmr, any client) { SetEntityMoveType(client, MOVETYPE_WALK); Entity_SetRenderColor(client, 255, 255, 255, 255); EmitSoundToClientAny(client, SOUND_FREEZE_EXPLODE); } void LightCreate(float pos[3]) { int entity = CreateEntityByName("light_dynamic"); DispatchKeyValue(entity, "_light", "0 186 247"); DispatchKeyValue(entity, "brightness", "7"); DispatchKeyValueFloat(entity, "spotlight_radius", FreezeDistance - 20.0); DispatchKeyValueFloat(entity, "distance", FreezeDistance - 50.0); DispatchKeyValue(entity, "style", "0"); DispatchSpawn(entity); AcceptEntityInput(entity, "TurnOn"); pos[2] += 50; TeleportEntity(entity, pos, NULL_VECTOR, NULL_VECTOR); CreateTimer(FreezeTime, Remove_Light, entity); } public Action Remove_Light(Handle tmr, any entity) { if(IsValidEdict(entity)) AcceptEntityInput(entity, "kill"); } //Sound shit public Action GrenadeSoundHook(int clients[64], int &numClients, char sample[PLATFORM_MAX_PATH], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags) { char entityname[100]; GetEntityClassname(entity, entityname, sizeof(entityname)); if(StrEqual(entityname, "decoy_projectile")) return Plugin_Handled; return Plugin_Continue; } void SetClientSpeed(int client, float speed) { SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", speed); } float GetClientSpeed(int client) { float speed = GetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue"); return speed; } Próbowałem dodać po prostu includy i wy kompilować ale pojawia się error fatal error 183: cannot read from file: "smlib" #include <sourcemod> #include <sdktools> #include <cstrike> #include <basebuilder> #include <emitsoundany> #include <smlib> #include <sdkhooks> //#include <fpvm_interface> #include <multicolors>
  2. Czy coś jeszcze zostało ? czy wszystkie obsady zajęte , i czy można gdzieś zobaczyć stronkę ?
  3. Też próbowałem ale to musiałbyś praktycznie nowy silnik pisać albo podmieniać 50 % :/
  4. Jak dla mnie powinieneś dostać warna za takie spamowanie :)
  5. Witam chciałbym was się zapytać co powinienem zrobić aby mój serwer miał tam jakąś aktywność na 1.6 to wystarczyło sb kupić reklame od css i full serwer, ale w go jest inaczej.
  6. @Mateo jeśli chcesz mieć ten plugin u sb na serwerze musisz pobrać napoczątku "simple-chatprocessor" ten plugin to core niektóre pluginy wymagają innych do poprawnego działania. Zanim zadasz pytanie skąd pobrać ten cały simple-chatprocessor zajżyj na plugin który pobierałeś autor informuje tam, gdzie możesz go pobrać, oraz że jest wymagany ten właśnie plugin. https://forums.alliedmods.net/showthread.php?p=2448733
  7. Zhp.

    Plugin na granaty

    Zabawne xD szukam pluginu a nie czegoś co już jest w grze decoy to był chyba zamrażający itd itd ;/ na wzór z 1.6
  8. Zhp.

    Problem z modelami

    Dzięki i działa <3 https://forums.alliedmods.net/showthread.php?p=602270
  9. Zhp.

    Problem z modelami

    Witam mam problem z tym pluginem https://forums.alliedmods.net/showthread.php?t=233076 Wyskakuje taki błąd models\player\custom_player\voikanaa\hitman\agent47.mdl) is not precached!!! #pragma semicolon 1 #include <sourcemod> #include <sdktools> #define _DEBUG 0 // Set to 1 to have debug spew #define PLUGIN_VERSION "0.0.1.0" new String:kv_file[PLATFORM_MAX_PATH]; new bool:Enabled = false; new bool:PlayerHasForcedSkin[MAXPLAYERS + 1] = {false, ...}; new String:ForcedSkin[MAXPLAYERS + 1][PLATFORM_MAX_PATH]; new Handle:ClientTimer[MAXPLAYERS + 1] = {INVALID_HANDLE, ...}; public Plugin:myinfo = { name = "Forced Skin", author = "TnTSCS aKa ClarkKent", description = "Force players to have certain defined skin", version = PLUGIN_VERSION, url = "https://forums.alliedmods.net" } public OnPluginStart() { new Handle:hRandom; // KyleS hates handles HookConVarChange((hRandom = CreateConVar("sm_fs_version", PLUGIN_VERSION, "The version of 'Forced Skin'", FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_PLUGIN | FCVAR_DONTRECORD)), OnVersionChanged); HookConVarChange((hRandom = CreateConVar("sm_fs_enabled", "1", "Is Forced Skin enabled?", FCVAR_NONE, true, 0.0, true, 1.0)), OnEnabledChanged); Enabled = GetConVarBool(hRandom); CloseHandle(hRandom); BuildPath(Path_SM, kv_file, PLATFORM_MAX_PATH, "configs/forced_skin.txt"); HookEvent("player_spawn", Event_PlayerSpawn); } public OnClientAuthorized(client, const String:auth[]) { if (Enabled && client != 0 && !IsFakeClient(client)) { ForcedSkin[client][0] = '\0'; if (ClientHasAssignedSkin(client, auth)) { PlayerHasForcedSkin[client] = true; } else { PlayerHasForcedSkin[client] = false; } } } public OnClientDisconnect(client) { if (IsClientConnected(client)) { PlayerHasForcedSkin[client] = false; ForcedSkin[client][0] = '\0'; ClearTimer(ClientTimer[client]); } } public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")); if (!Enabled || client < 1 || client > MaxClients || !PlayerHasForcedSkin[client]) { return; } // Timer to set skin if (IsModelPrecached(ForcedSkin[client])) { ClientTimer[client] = CreateTimer(0.1, Timer_ApplySkin, client); } else { LogError("Model for %L (%s) is not precached!!!", client, ForcedSkin[client]); PrintToChat(client, "\x03There's a problem with your model, let an admin know"); PrintToChat(client, "Your assigned model: \x02%s", ForcedSkin[client]); } } public Action:Timer_ApplySkin(Handle:timer, any:client) { ClientTimer[client] = INVALID_HANDLE; SetEntityModel(client, ForcedSkin[client]); } bool:ClientHasAssignedSkin(client, const String:auth[]) { new Handle:kv = CreateKeyValues("Forced Skins"); if (!FileToKeyValues(kv, kv_file)) { SetFailState("Unable to open file %s", kv_file); } #if _DEBUG LogMessage("Opening key value file to check for %L", client); #endif if (!KvGotoFirstSubKey(kv)) { #if _DEBUG LogMessage("Unable to find any keys in the key value file"); #endif return false; } decl String:model[PLATFORM_MAX_PATH]; model[0] = '\0'; decl String:steamid[50]; steamid[0] = '\0'; do { KvGetSectionName(kv, steamid, sizeof(steamid)); if (StrEqual(steamid, auth)) { KvGetString(kv, "path", model, sizeof(model)); TrimString(model); #if _DEBUG LogMessage("Setting %s for %L.", model, client); #endif Format(ForcedSkin[client], sizeof(ForcedSkin[]), model); CloseHandle(kv); return true; } } while (KvGotoNextKey(kv)); CloseHandle(kv); #if _DEBUG LogMessage("No skin defined for for %L", client); #endif return false; } public ClearTimer(&Handle:timer) { if (timer != INVALID_HANDLE) { KillTimer(timer); timer = INVALID_HANDLE; } } public OnVersionChanged(Handle:cvar, const String:oldValue[], const String:newValue[]) { if (!StrEqual(newValue, PLUGIN_VERSION)) { SetConVarString(cvar, PLUGIN_VERSION); } } public OnEnabledChanged(Handle:cvar, const String:oldValue[], const String:newValue[]) { Enabled = GetConVarBool(cvar); } "Forced Skin" { "STEAM_1:0:120682895" { "path" "models\player\custom_player\voikanaa\hitman\agent47.mdl" } }
  10. Zhp.

    Visual Music

    Wszystko fajnie, nutki są w porządku ale stare, preferuje robić takie remixy z 2k17 , ale co jest dobre to trwa, miło się tego słucha ale nw czemu mam jakby trochę zniekształconą tą muzykę u sb nie wina słuchawek ;) , radziłbym renderować w innej jakości dźwięk, a tak pyzatym to leci sub i łapaka.
  11. Zhp.

    Plugin na granaty

    Witam poszukuje pluginu na granaty zamrażające podpalające itd
  12. Zhp.

    Blokowanie broni

    Rozumiem ale zawsze jest prawdopodobieństwo że coś może się zepsuć a to jakiś plugin akurat na tej wersji nie działa itd itd... Dlatego ten wątek szukam rozwiązania, albo rzeczy wiście musiał bym rozważyć zmianę sm Chociaż teraz tak patrzę i 6025 to najnowsza wersja byłem 100% przekonany że taką posiadam a tu zaskoczenie mój hosting chyba wygrał mi starszą wersję sm :o
  13. Zhp.

    Blokowanie broni

    I co teraz będę musiał cały sm wgrywać ? dla jednego pluginu ;/
  14. Zhp.

    Blokowanie broni

    Witam serdecznie szukam pluginu na blokadę broni, korzystałem z tego pluginu ale po wyborze jakiej kolwiek broni crashuje serwer ;/ Ten również https://forums.alliedmods.net/showthread.php?p=950174
  15. Już to zrobiłem mam nadzieję że graczy nie będzie wywalać :)
  16. Ale mi on normalnie działa ;/
  17. No tak ale czy wina jest po stronie serwera czy jego ?
  18. Witam mam problem mianowicie co jakiś czas niektórych graczy wyrzuca po prostu z serwera z komunikatem Pure server: file [GAME]\sound\music\misc\ctwinnar1.mp3 doe (zdarzyło mi się widzieć ten błąd 2 razy ) i nw czy to po stronie serwera czy gracza mi wszystko działa ;/
  19. Zhp.

    BSLimiter

    Jeszcze jedno pytanko bo aktualnie mam po 12 os na serwerze i nadal jest only A
  20. Zhp.

    Plugin rangi

    Pobierałeś SteamWorks' a ?
  21. Zhp.

    Nożówki

    Może ten plugin :) https://forums.alliedmods.net/showthread.php?t=280614
  22. Zhp.

    Losowanie Vipa

    No dobrze dzięki i repka dla cb <3
  23. Zhp.

    Losowanie Vipa

    Wiem tylko chciałem w sumie się spytać dlaczego warning występuje, dobra najważniejsze że działa do zamknięcia :P
×
×
  • Dodaj nową pozycję...