Restricție Arme

Descărcări de pluginuri și discuții despre acestea.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
xSaG
Membru, skill +1
Membru, skill +1
Posts: 225
Joined: 11 Aug 2017, 00:21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 5 times
Contact:

03 May 2022, 22:56

Nume plugin: Restricție Arme
Descriere: Restricționează anumite arme de pe server.
Autor: </xSaG>
Versiune: 1.0
Download: https://www81.zippyshare.com/v/c2Y8a7tQ/file.html
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
RoyalServer 2
User avatar
Rainq
Membru, skill +2
Membru, skill +2
Posts: 681
Joined: 21 Jul 2015, 19:50
Detinator Steam: Da
CS Status: Retras
Detinator server CS: zm.extreamcs.com
SteamID: mrainq
Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: Bucharest
Discord: manuraiders
Has thanked: 29 times
Been thanked: 51 times
Contact:

05 May 2022, 21:22

poti sa faci sa restrictioneze unele arme dupa x runde ?
Image
User avatar
xSaG
Membru, skill +1
Membru, skill +1
Posts: 225
Joined: 11 Aug 2017, 00:21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 5 times
Contact:

06 May 2022, 21:58

Rainq wrote:
05 May 2022, 21:22
poti sa faci sa restrictioneze unele arme dupa x runde ?
Înlocuieste :

Code: Select all

	for(w = 0; w < size; w++)
	{
		Weapons.GetString(w, weapons_restricted, sizeof(weapons_restricted));
		if(StrContains(weapon, weapons_restricted, false) != -1)
		{
			PrintToChat(client, "Această armă este restricționată!");
			return Plugin_Handled;
		}
	}
Cu:

Code: Select all

	if(GetRoundCount() == ce runda vrei tu)
	{
		for(w = 0; w < size; w++)
		{
			Weapons.GetString(w, weapons_restricted, sizeof(weapons_restricted));
			if(StrContains(weapon, weapons_restricted, false) != -1)
			{
				PrintToChat(client, "Această armă este restricționată!");
				return Plugin_Handled;
			}
		}
	}
apoi adăugă jos de tot

Code: Select all

stock int GetRoundCount()
{
	return GameRules_GetProp("m_totalRoundsPlayed");
}
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
Post Reply

Return to “Pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest