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

strikerpl

Użytkownik
  • Postów

    68
  • Dołączył

  • Ostatnia wizyta

Treść opublikowana przez strikerpl

  1. strikerpl

    MyExtreme

    Dostal bana , bez przesady jak to tak chamsko mozna reklamowac ? ;_;. 2 tez dostanie jak oglądne demo bo byl i 2 a pixel musial pójść =d jakby ktos chcial steamid moge podac jesli nie chcecie zeby i do was zawitali pod nieobecność administracji Pozdrawiam
  2. Bardzo duzo informacji podales jaki silnik i etc
  3. Cs go nie obsluguje kolory hez na chat"cie. Temat z kolorami byl wiele razy poruszany polecam wyszukiwarkę mygo ;).
  4. Siemka ostatnio zacząłem sie interesować key values znalazlem kod do panelu na mygo i tu sie rodzi pytanie jak z configu np. takiego wypisac spis Spis { "XYZ" "XYZ" "XYZ" "XYZ" } A tutaj menu #include <sourcemod> public Plugin:myinfo = { name = "", author = "", description = "", version = "", url = "" } public void OnPluginStart() { RegConsoleCmd("sm_menutest", test); } public void test(int client) { Panel panels = new Panel(); char buffer[512]; /* !!!TUTAJ WKLEJALO ZAWARTOSC KEYVALUES!!! */ panels.SetTitle(buffer); panels.DrawItem("Zamknij"); panels.Send(client, czass, 20); delete panels; } public int czass(Menu menu, MenuAction action, int param1, int param2) { }
  5. Co ty chcesz tutaj refac malo wartosciowy jest to artykul iz od ciula jest takich poradnikow, zrob cos o pisaniu pluginow to bedzie bardziej wartosciowe
  6. Siemka mam pytanko; Jak zrobic by cos sie zadzialo gdy zostanie 10 s do konca rundy , by to trzebalo zrobic timerem ktory liczy czas od poczatku rundy czy jest na to inny sposób ??? Dzieki za odpowiedź
  7. Musze czyscic poniewaz w kazdej chwili gracz moze znalezc bron i zabijac innych; Dzieki sproboje tego ;p TEMAT DO ZAMKNIECIA : Dzieki @Linux`
  8. Sypie errorami L 10/21/2017 - 16:49:32: [SM] Exception reported: Entity index 0 is not a valid client L 10/21/2017 - 16:49:32: [SM] Blaming: removev2.smx L 10/21/2017 - 16:49:32: [SM] Call stack trace: L 10/21/2017 - 16:49:32: [SM] [0] GetPlayerWeaponSlot L 10/21/2017 - 16:49:32: [SM] [1] Line 25, removev2.sp::StripAllWeapons L 10/21/2017 - 16:49:32: [SM] [2] Line 16, removev2.sp::StripAllWeapons1 #include <sourcemod> #include <sdktools> #include <sdkhooks> #include <cstrike> public OnPluginStart() { CreateTimer(5.0, StripAllWeapons1, _, TIMER_REPEAT); } public Action StripAllWeapons1(Handle timer, int client) { for(int i; i <= MaxClients; i++) { StripAllWeapons(client); } } stock void StripAllWeapons(int client) { new ent = -1; for(new slot = 0; slot < 2; slot ++) { ent = GetPlayerWeaponSlot(client, slot); if(ent != -1) { RemovePlayerItem(client, ent); RemoveEdict(ent); } } }
  9. Siemka mam taki kod i cos mi nie wychodzi; chce zeby czyscilo cale eq playera procz noza i granatow jak ktos ma jakis pomysl to niech napisze z gory dziekuje :P #include <sourcemod> #include <sdktools> #include <sdkhooks> #include <cstrike> public OnPluginStart() { CreateTimer(5.0, StripAllWeapons1, _, TIMER_REPEAT); } public Action StripAllWeapons1(Handle:timer) { for (int i = 0; i <= 1; i++) { StripAllWeapons(i); } } stock void StripAllWeapons(int client) { int iEnt; for (int i = 0; i <= 1; i++) { while ((iEnt = GetPlayerWeaponSlot(client, i)) != -1) { RemovePlayerItem(client, iEnt); AcceptEntityInput(iEnt, "Kill"); } } } stock bool IsValidClient(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; }
  10. Ooo to ominalem xD z tym immunity to jest wymagane do poprawnego dzialania skryptu ? EDIT: Poczekam moze na pixela bo ma wrocic za 30 min to pomoze mi to ogarnac v: sorry za zamieszanie ;) i zly dzial od tego
  11. Siemka znalazlem u ciebie plugin na reklamy : Reklams.sp od shorte #include <sourcemod> #pragma semicolon 1 #pragma newdecls required bool Debug = false; //Jeśli ktoś chce logi #define LOG_FILE "addons/sourcemod/logs/test-reklama.txt" int DebugPlayers = 0; int Modul = 1; //Moduł pluginu // 0 - plugin off // raczej nie potrzebne, no ale niech będzie // 1 - reklama po wejściu gracza i co 360 sekundach // 2 - reklama po wejściu gracza i na koniec gry bool WhenDead = true; // Reklama pokazuje się tylko gdy gracz nie żyje - true; nawet gdy żyje - false; bool Print = false; // Czy mają być Printy? ConVar RestartDelay; #define LICZBA_LINKOW 9 char link[LICZBA_LINKOW][32] = { "http://ceesty.com/w01tLf", "http://ceesty.com/w01yR0", "http://ceesty.com/w01yVj", "http://ceesty.com/w01y9C", "http://ceesty.com/w01upy", "http://ceesty.com/w01ubC", "http://ceesty.com/w01uW3", "http://ceesty.com/w01uD1", "http://ceesty.com/w01uLZ" }; public Plugin myinfo = { name = "Reklams", author = "xBonio", description = "Reklamy na serwerach", version = "0.3.2", url = "http://arenaskilla.pl" } public void OnPluginStart() { HookEvent("cs_win_panel_match", KoniecGry); if(Debug) LogToFile(LOG_FILE, " --- Start/Reload Pluginu --- "); } public void OnMapStart() { RestartDelay = FindConVar("mp_match_restart_delay"); if(Debug) LogToFile(LOG_FILE, " <---> Nowa Mapa <---> "); } public Action KoniecGry(Event event, const char[] name, bool dontBroadcast) { if(Modul == 2) { DebugPlayers = 0; for(int i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsClientSourceTV(i)) { StartReklam(i); int EndReklamsTime = GetConVarInt(RestartDelay); CreateTimer(float(EndReklamsTime) - 1.0, EndReklam, i); ++DebugPlayers; if(Debug) { LogToFile(LOG_FILE, " - Koniec Gry dla [%d] %L", i, i); LogToFile(LOG_FILE, " - ConVar Value = %d", EndReklamsTime); } } if(Debug && i == MaxClients) { LogToFile(LOG_FILE, " "); LogToFile(LOG_FILE, "********************************"); LogToFile(LOG_FILE, " - Reklama wyświetliła się dla %d graczy", DebugPlayers); LogToFile(LOG_FILE, "********************************"); LogToFile(LOG_FILE, " "); } } } } public Action EndReklam(Handle timer, any client) { if(Modul == 2) { if(!IsClientInGame(client)) { if(Debug) LogToFile(LOG_FILE, " - Client %d wyszedł przed końcem reklamy", client); return; } --DebugPlayers; if(Debug) LogToFile(LOG_FILE, " --DebugPlayers, zostaje: %d", DebugPlayers); StopReklam(client); } } public void OnClientPostAdminCheck(int client) { if(!Modul) return; if(IsClientSourceTV(client)) return; if(!(GetUserFlagBits(client) & ADMFLAG_ROOT) || !IsVIP(client)) CreateTimer(20.0, ReklamTimerStart, client, TIMER_FLAG_NO_MAPCHANGE); } public Action ReklamTimerStart(Handle timer, any client) { if(!IsClientInGame(client) || IsClientSourceTV(client)) return; if(IsVIP(client)) return; if(WhenDead && IsPlayerAlive(client)) { CreateTimer(10.0, ReklamTimerStart, client, TIMER_FLAG_NO_MAPCHANGE); if(Debug) LogToFile(LOG_FILE, "Gracz %L żyje. Kolejna próba za 10s", client); return; } StartReklam(client); } public void StartReklam(int client) { int numer_linku = GetRandomInt(0, LICZBA_LINKOW-1); char link_format[32]; Format(link_format, sizeof(link_format), "%s", link[numer_linku]); if(!(GetUserFlagBits(client) & ADMFLAG_ROOT) || !IsVIP(client)) { ShowHiddenMOTDPanel(client, link_format, MOTDPANEL_TYPE_URL, false); CreateTimer(12.0, ReklamTimerStop, client, TIMER_FLAG_NO_MAPCHANGE); if(Print) { PrintToChat(client, " \x06Start Hidden Reklama"); PrintToChat(client, " \x06--->\x10 Aby nie posiadać reklam, kup VIP'a"); } } if(Debug) { LogToFile(LOG_FILE, "==========================="); LogToFile(LOG_FILE, "-> Start reklamy, Dane:"); LogToFile(LOG_FILE, " - Numer %d", numer_linku); LogToFile(LOG_FILE, " - Link %s", link_format); LogToFile(LOG_FILE, " - Client %L", client); if(IsVIP(client)) LogToFile(LOG_FILE, " - Client posiada VIP'a"); else if(GetUserFlagBits(client) & ADMFLAG_GENERIC) LogToFile(LOG_FILE, " - Client jest Adminem"); else if(IsClientSourceTV(client)) LogToFile(LOG_FILE, " - Client to GOTV"); else LogToFile(LOG_FILE, " - Client to zwykły gracz"); LogToFile(LOG_FILE, "==========================="); } } public Action ReklamTimerStop(Handle timer, any client) { if(!IsClientInGame(client) || IsClientSourceTV(client)) return; StopReklam(client); } public void StopReklam(int client) { ShowHiddenMOTDPanel(client, "http://example.com", MOTDPANEL_TYPE_URL, false); if(Print) { PrintToChat(client, " \x07Stop Hidden Reklama"); PrintToChat(client, " \x06--->\x10 Aby nie posiadać reklam, kup VIP'a"); } if(Modul == 1 && (!(GetUserFlagBits(client) & ADMFLAG_ROOT) || !IsVIP(client))) CreateTimer(360.0, ReklamTimerStart, client, TIMER_FLAG_NO_MAPCHANGE); if(Debug) { LogToFile(LOG_FILE, "==========================="); LogToFile(LOG_FILE, "-> -> Stop reklamy Client'a %L", client); LogToFile(LOG_FILE, "==========================="); } } public void ShowHiddenMOTDPanel(int client, char[] url, int type, bool visible) { Handle setup = CreateKeyValues("data"); KvSetString(setup, "title", "Reklama na rzecz ArenaSkilla.pl"); KvSetNum(setup, "type", type); KvSetString(setup, "msg", url); ShowVGUIPanel(client, "info", setup, visible); delete setup; } stock bool IsVIP(int client) { if(CheckCommandAccess(client, "ReklamsImmunity", 0, true)) return true; return false; } Taki mam kod i ogółem nie nabija wyswietlen mozesz masz jakies sugestie ?
  12. Tak gdzies pod tematem autora feanuga w komwtarzach sie przewijaly :)
  13. Zabilem Timer dziekuje za wszystko @camerdisco na ciebie mozna liczyc ;p Temat do zamkniecia ;p
  14. #include <sourcemod> int gTime[MAXPLAYERS + 1]; Handle gCounting[MAXPLAYERS + 1]; Handle gInfo[MAXPLAYERS + 1]; public void OnPluginStart() { RegConsoleCmd("sm_testinfo", Test); } public Action Test(int client, int args) { gTime[client] = 5; gInfo[client] = CreateTimer(0.1, ShowInfo, GetClientUserId(client), TIMER_REPEAT); gCounting[client] = CreateTimer(1.0, Count, GetClientUserId(client)); gCounting[client] = CreateTimer(2.0, Count, GetClientUserId(client)); gCounting[client] = CreateTimer(3.0, Count, GetClientUserId(client)); gCounting[client] = CreateTimer(4.0, Count, GetClientUserId(client)); gCounting[client] = CreateTimer(5.0, Count, GetClientUserId(client)); gCounting[client] = CreateTimer(6.0, Count, GetClientUserId(client)); } public Action ShowInfo(Handle timer, any userid) { int client = GetClientOfUserId(userid); if (!IsClientInGame(client))return Plugin_Stop; if (gTime[client] <= -1)return Plugin_Stop; PrintHintText(client, "Zostało Ci %i sekund", gTime[client]); return Plugin_Continue; } public Action Count(Handle timer, any userid) { int client = GetClientOfUserId(userid); if (!IsClientInGame(client))return Plugin_Stop; gTime[client]--; return Plugin_Continue; } Zrobilem tak i juz sie nie dubluje przyspieszenie pokazywania tylko oto pytanie da sie odrazu wymusic by znikl ten napis Zostało Ci %i sekund jak liczba bedzie rowna =-1 ?
  15. @camerdisco Powiem tak to co wyslales u gory sie buguje czasami przetestowane to najpierw bez implementowania w plugin . Jak uzyje raz ta komende to leci normlanie 15 ...1 i koniec odczekalem sobie 10 s niz znowu uzylem ta komende to nagle szybciej te sekundy leca xD Ogółem jesli uzyje komendy wiecej niz 1 raz to coraz szybciej leca te sekundy xD
  16. @camerdisco dzieki :p jak patrze na ten kod i u siebie to baaaardzo od siebie roznia tylko u ciebie dziala u mnie nie; jak probowalem wczesniej. Będę sie wzorowal na tym i mysle ze bedzie dobrze dziękuję :)
  17. Dobra dzieki za te informacje sprobowalem to zrobic na wzor co ty mowisz ale mi nie wychodzi poczekam moze ktos mi jasniej wypisze bo slabo sie na tym znam jeszcze raz dzieki !
  18. Tylko nie wiem jak zbytnio to zapetlic zeby ciagle to pokazywalo clientowi i zeby timer ten obnizal ;p
  19. Siemka Jak by cos takiego zrobic ? :V Załóżmy, gdy klikniemy przycisk +ATTACK_2 to wykonuje nam sie specjalna umiejetnosc, ale co zrobic by na PrintHintText pokazywało ile do konca tej umiejetnosci pozostało nam sekund np. umiejetnosc trwa 15 s
  20. strikerpl

    Plugin na granaty

    Basebuilder posiada takie granaty mozesz sie na nich wzorować ;D
  21. Niech ten ktos usunie ten plik z folderu csgo gdzie tam sie znajduje lub sv_pure 0
×
×
  • Dodaj nową pozycję...