Restrict la awp pe o anumita harta. [rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
kEnT89
Membru, skill 0
Membru, skill 0
Posts: 6
Joined: 11 Feb 2019, 22:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

13 Feb 2019, 02:10

Plugin Cerut: Vreau ca pe harta de_dust2x2 sa fie interzis awp-ul.
Descriere (adica ce face el mai exact): .Stiu ca este comanda amx_restmenu,dat trebuie bagata de fiecare data
Serverul ruleaza (HLDS/ReHLDS): Hlds
Versiune AMX Mod X:
Modul Serverului: Clasic
Last edited by Laurentiu P. on 23 Feb 2019, 09:31, edited 2 times in total.
Reason: Editat după model. / rezolvat
Envato
User avatar
DanN
Membru, skill 0
Membru, skill 0
Posts: 61
Joined: 30 Sep 2017, 21:12
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Location: Resita
Has thanked: 2 times
Contact:

13 Feb 2019, 19:03

| Afiseaza codul
#include <amxmodx>
#include <fun>

new const
	PLUGIN[] = "",
	VERSION[] = "1.0",
	AUTHOR[] = "scosmyn";

new bool:IsWeapons = false

new const szMaps[][] =
{
	"awp",
	"deagle"
}

public plugin_init() {
	register_plugin(PLUGIN,VERSION,AUTHOR)
	register_event("CurWeapon","CurrentWeapon","be","1=1")

	set_task(1.0,"task_exec")
}
public task_exec() {
	new mapname[32]
	get_mapname(mapname,charsmax(mapname))
	for(new i = 0;i < sizeof szMaps; i++)
	{
		if(containi(mapname,szMaps) != -1)
		{
			IsWeapons = true
			break
		}
		else
		{
			IsWeapons = false
		}
	}
}
public CurrentWeapon(id) {
	if(IsWeapons)
		return
	else
	{
		if(!(get_user_flags(id) & ADMIN_LEVEL_H))
		{
			if(get_user_weapon(id) == CSW_AWP || get_user_weapon(id) == CSW_DEAGLE)
			{
				client_cmd(id,"drop")
			}
		}
		else
		{
			return
		}
	}
}
kEnT89
Membru, skill 0
Membru, skill 0
Posts: 6
Joined: 11 Feb 2019, 22:46
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

22 Feb 2019, 21:23

Multumesc !
Se poate da T.C
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2464
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Location: Constanta
Has thanked: 2 times

23 Feb 2019, 09:31

kEnT89 wrote:Multumesc !
Se poate da T.C
Marcat ca rezolvat.
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests