It is currently 24 Feb 2019 03:05



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 4 posts ] 
 Restrict la awp pe o anumita harta. [rezolvat] 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 11 Feb 2019 22:46
Posts: 2
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
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.

Editat după model. / rezolvat



13 Feb 2019 02:10
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 21:12
Posts: 53
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
| 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[i]) != -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
}
}
}


13 Feb 2019 19:03
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 11 Feb 2019 22:46
Posts: 2
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Multumesc !
Se poate da T.C


22 Feb 2019 21:23
Profile multumesc WWW
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2411
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
kEnT89 wrote:
Multumesc !
Se poate da T.C


Marcat ca rezolvat.


23 Feb 2019 09:31
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: Baidu [Spider] and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group