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

Darkin

Użytkownik
  • Postów

    11
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez Darkin

  1. Chodzi Ci o zmianę tego w skrypcie? zmieniłem, zamieniłem na 4 różne linie, ale chyba nie o to Ci chodzi bo kompiler errory wywala :astonished:

     

    if(CheckCommandAccess(client) & ADMFLAG_RESERVATION)
    if(CheckCommandAccess(client, ADMFLAG_RESERVATION)) 

     

    Idę w dobrym kierunku? ...

     

  2. output: [SM] Plugin vip.smx is already loaded.

    W grze jednak nie działa i nie pokazuje go w sm plugins na serwerze

    22 godziny temu, SeeQ napisał:
    
    SetEntProp(client, Prop_Send, "m_ArmorValue", );

    Chyba czegoś tu brakuje? ;V

    Czego? ;c

  3. sm plugins go nie pokazuje, logi czyst. Tak na pewno .smx w logach error tylko to:

     

    EDIT: kompilowałem plugin z .sp do .smx próbując przez kompiler online jak i przez sourcemod na kompie. Tu i tu bez problemu skompilowało. Jeśli to ma jakieś znaczenie.

     

    Spoiler

    L 07/01/2018 - 11:11:44: SourceMod error session started
    L 07/01/2018 - 11:11:44: Info (map "de_mirage") (file "errors_20180701.log")
    L 07/01/2018 - 11:11:44: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:13:46: SourceMod error session started
    L 07/01/2018 - 11:13:46: Info (map "de_dust2") (file "errors_20180701.log")
    L 07/01/2018 - 11:13:46: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:13:58: Error log file session closed.
    L 07/01/2018 - 11:23:35: SourceMod error session started
    L 07/01/2018 - 11:23:35: Info (map "de_dust2") (file "errors_20180701.log")
    L 07/01/2018 - 11:23:35: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:23:35: [SM] Unable to load plugin "sodstats.smx": Native "BfWriteByte" was not found
    L 07/01/2018 - 11:23:48: Error log file session closed.
    L 07/01/2018 - 11:26:13: SourceMod error session started
    L 07/01/2018 - 11:26:13: Info (map "de_dust2") (file "errors_20180701.log")
    L 07/01/2018 - 11:26:13: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:26:13: [SM] Unable to load plugin "sodstats.smx": Native "BfWriteByte" was not found
    L 07/01/2018 - 11:26:43: Error log file session closed.
    L 07/01/2018 - 11:35:22: SourceMod error session started
    L 07/01/2018 - 11:35:22: Info (map "de_dust2") (file "errors_20180701.log")
    L 07/01/2018 - 11:35:22: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:35:34: Error log file session closed.
    L 07/01/2018 - 11:38:20: SourceMod error session started
    L 07/01/2018 - 11:38:20: Info (map "de_dust2") (file "errors_20180701.log")
    L 07/01/2018 - 11:38:20: [SM] Unable to load plugin "rockthevote.smx": Could not find required plugin "mapchooser"
    L 07/01/2018 - 11:38:32: Error log file session closed.

     

  4. Do tej pory sądziłem, że jeśli posiadasz plugin bez cvarów i includów to wystarczy wrzucić go do plugins i działa. Mylę się? Przy 40+ pluginach nie było problemu, nagle jest z tym. Pytam więc czy on w praktyce może działać czy może kod jest przestarzały?

  5. Cześć użyłem generatora vipa z pewnej stronki, po wrzuceniu jednak nie czyta mi tego pluginu. Wrzucam sp i smx, resetuje serva i nie ma tego pluginu, sm plugins go nie widzi i brak jakiś errorów w logach czy czegokolwiek. Wrzucam wam kod. 

     

    Plugin powinien zawierać:

    - 200$ za zabójstwo

    - zestaw do rozbrajania 

    - kevlar i hełm poza rundami pistol

    - granaty co runde (2xFlash, 1xSmoke)

    - podwójny skok

     

    Spoiler
    
    #include <sourcemod>
    #include <cstrike>
    #include <sdktools>
    
    #pragma semicolon 1
    #pragma newdecls required
    
    public Plugin myinfo =
    {
    	name = "[CS:GO] VIP",
    	author = "xBonio & Avgariat & Vasto_Lorde",
    	description = "VIP Generator by cs-plugin.com",
    	version = "1.0",
    	url = "http://cs-plugin.com"
    };
    
    int offsetFlash;
    int offsetSmoke;
    public void OnPluginStart()
    {
    	HookEvent("player_spawn", PlayerSpawn);
    	HookEvent("player_death", PlayerDeath);
    }
    public void OnMapStart()
    {
    	int entindex;
    
    	entindex = CreateEntityByName("weapon_flashbang");
    	DispatchSpawn(entindex);
    	offsetFlash = GetEntProp(entindex, Prop_Send, "m_iPrimaryAmmoType");
    	AcceptEntityInput(entindex, "Kill");
    
    	entindex = CreateEntityByName("weapon_smokegrenade");
    	DispatchSpawn(entindex);
    	offsetSmoke = GetEntProp(entindex, Prop_Send, "m_iPrimaryAmmoType");
    	AcceptEntityInput(entindex, "Kill");
    
    }
    
    public Action PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
    {
    	int client = GetClientOfUserId(GetEventInt(event, "userid"));
    	if(!IsPlayerVIP(client)) return;
    	if(GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 0 || GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 15)
    		SetEntProp(client, Prop_Send, "m_ArmorValue", );
    	if(GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 0 || GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 15)
    		SetEntProp(client, Prop_Send, "m_bHasHelmet", 1);
    	if(GetClientTeam(client) == CS_TEAM_CT)
    		if(GetEntProp(client, Prop_Send, "m_bHasDefuser") == 0) GivePlayerItem(client, "item_defuser");
    	for(int x = 0; x < 2; x++)
    		if(GetEntProp(client, Prop_Send, "m_iAmmo", _, offsetFlash) < 2) GivePlayerItem(client, "weapon_flashbang");
    	for(int x = 0; x < 1; x++)
    		if(GetEntProp(client, Prop_Send, "m_iAmmo", _, offsetSmoke) < 1) GivePlayerItem(client, "weapon_smokegrenade");
    }
    public Action PlayerDeath(Handle event, const char[] name, bool dontBroadcast)
    {
    	int attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
    	if(!IsValidPlayer(attacker) || !IsPlayerVIP(attacker)) return;
    	int money = GetEntProp(attacker, Prop_Send, "m_iAccount");
    	SetEntProp(attacker, Prop_Send, "m_iAccount", money+200);
    }
    
    public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float[3] vel, float[3] angles, int &weapon)
    {
    	if(!IsValidPlayer(client) || !IsPlayerAlive(client)) return;
    	if(!IsPlayerVIP(client)) return;
    	static int g_fLastButtons[MAXPLAYERS+1], g_fLastFlags[MAXPLAYERS+1], g_iJumps[MAXPLAYERS+1], fCurFlags, fCurButtons;
    	fCurFlags = GetEntityFlags(client);
    	fCurButtons = GetClientButtons(client);
    	if (g_fLastFlags[client] & FL_ONGROUND && !(fCurFlags & FL_ONGROUND) && !(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP) g_iJumps[client]++;
    	else if(fCurFlags & FL_ONGROUND) g_iJumps[client] = 0;
    	else if(!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP && g_iJumps[client] <= 2)
    	{
    		g_iJumps[client]++;
    		float vVel[3];
    		GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel);
    		vVel[2] = 250.0;
    		TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel);
    	}
    	g_fLastFlags[client] = fCurFlags;
    	g_fLastButtons[client] = fCurButtons;
    	
    }
    
    public Action CS_OnBuyCommand(int client, const char[] item)
    {
    	if(!IsPlayerVIP(client)) return Plugin_Continue;
    	if(GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) == 0 || GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) == 15)
    	{
    		if(StrEqual(item, "assaultsuit") || StrEqual(item, "vesthelm"))
    		{
    			PrintToChat(client, "Helm zostal zablokowany na rundach pistoletowych!");
    			return Plugin_Handled;
    		}
    	}
    	
    	return Plugin_Continue;
    }
    
    stock bool IsValidPlayer(int client)
    {
    	if(client >= 1 && client <= MaxClients && IsClientInGame(client) && !IsFakeClient(client) && !IsClientSourceTV(client))
    		return true;
    	return false;
    }
    stock bool IsPlayerVIP(int client)
    {
    	if(GetUserFlagBits(client) & ADMFLAG_RESERVATION)
    		return true;
    	return false;
    }

     

     

×
×
  • Dodaj nową pozycję...