.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
pb_restrweapons
Old
  (#1)
raco0n
Member
 
Status: Offline
Posts: 2
Join Date: Jan 2007
Default pb_restrweapons - 16-01-2007

i dont understand how to block guns whit comand: pb_restrweapons
so i whant you to block guns: 7 8 20 22 23 24 25
# 0 - KNIFE
# 1 - USP
# 2 - GLOCK18
# 3 - DEAGLE
# 4 - P228
# 5 - ELITE
# 6 - FIVESEVEN
# Shotgun restrictions
# 7 - M3
# 8 - XM1014
# SMG restrictions
# 9 - MP5NAVY
# 10 - TMP
# 11 - P90
# 12 - MAC10
# 13 - UMP45
# Rifles restrictions
# 14 - AK47
# 15 - SG552
# 16 - M4A1
# 17 - GALIL
# 18 - FAMAS
# 19 - AUG
# 20 - SCOUT
# 21 - AWP
# 22 - G3SG1
# 23 - SG550
# Machine Gun restriction
# 24 - M249
# Shield restriction
# 25 - SHIELD
pls help me :\
I'm tried
pb_restrweapons "00000007800000000000022232425"
but dasn't working
p.s. Sorry for my bad english
  
Reply With Quote
Re: pb_restrweapons
Old
  (#2)
gjivan72
Member
 
Status: Offline
Posts: 12
Join Date: Jan 2007
Default Re: pb_restrweapons - 17-01-2007

First go here http://podbotmm.bots-united.com/doc_...iguration.html and read that.


This feature is absolutely new and it has been requested long time ago at BU forum by the people using AMX/AMXX/ClanMod weapon restriction. The people got frustrated when admin restricted for the players for example awp usgae, but bots still could buy it. Since this version it's possible to follow weapon/equipment restrictions done by those fun mods. There is a need to rewrite a bit restmenu.sma in AMX/AMXX to get cvar/cvars interface - to follow it in some another sma plugin to give the correct info to podbot mm binary. There is also a possibility to control manually weapons availability/restriction. The interface lets You use 2 strings bitwise as "00100..." - 0 means the weapon is available, 1 means the weapon is restricted. There are 2 cvars (as strings) defined for restrictions in podbot mm:

0= avialiable
1=restricted

Pistols restriction
0 - KNIFE
1 - USP
2 - GLOCK18
3 - DEAGLE
4 - P228
5 - ELITE
6 - FIVESEVEN
Shotgun restrictions
7 - M3
8 - XM1014
SMG restrictions
9 - MP5NAVY
10 - TMP
11 - P90
12 - MAC10
13 - UMP45
Rifles restrictions
14 - AK47
15 - SG552
16 - M4A1
17 - GALIL
18 - FAMAS
19 - AUG
20 - SCOUT
21 - AWP
22 - G3SG1
23 - SG550
Machine Gun restriction
24 - M249
Shield restriction
25 - SHIELD
Exmple restrictions for shield, awp and XM1014:
pb_restrweapons "00000000100000000000010001"

Tell me if I am nto clear
  
Reply With Quote
Re: pb_restrweapons
Old
  (#3)
Abudoggie
Member
 
Status: Offline
Posts: 8
Join Date: Jan 2007
Default Re: pb_restrweapons - 17-01-2007

I tried replacing the zeros witrh a 1 for the weapons I want to restrict and it didnt make a difference.

Everything else is working great.

Is there some other command to implement this?

I am really getting tired of auto-shotties and auto-snipes


Idle at #t1
  
Reply With Quote
Re: pb_restrweapons
Old
  (#4)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pb_restrweapons - 17-01-2007

Most left bit from that string is for the knife, most right is for the shield. The numbering starts from 0. Once You get it You should success.
  
Reply With Quote
Re: pb_restrweapons
Old
  (#5)
Abudoggie
Member
 
Status: Offline
Posts: 8
Join Date: Jan 2007
Default Re: pb_restrweapons - 23-01-2007

thnx kwo...

I am using v16c now and all is fine. Don't know if I goobered up something installing the the latest betas into my all-in-one installation but the restrictions didnt do anything. It wasn't an issue of "how to do it" (1 = restrict selected weapon...got that part :wink. I was using with the "all-in-one" pak.

I have now simplified to just amxmodx 1.76c, metmod 1.19p28, csdm 2.1 and PB v3 16c and all is hunky dory... my bots are even MEAN MEAN fighting machines!


Idle at #t1
  
Reply With Quote
Re: pb_restrweapons
Old
  (#6)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: pb_restrweapons - 23-01-2007

If You can try V3B17 (or even update the binaries to beta V3B17a) it would be good comparation - which version bots are harder. To get working AMX X restrictions with bots You need to use this plugin.
  
Reply With Quote
Re: pb_restrweapons
Old
  (#7)
Abudoggie
Member
 
Status: Offline
Posts: 8
Join Date: Jan 2007
Default Re: pb_restrweapons - 23-01-2007

Thanks... I will fire it up this weekend for a test drive.


Idle at #t1
  
Reply With Quote
Re: pb_restrweapons
Old
  (#8)
Abudoggie
Member
 
Status: Offline
Posts: 8
Join Date: Jan 2007
Default Re: pb_restrweapons - 28-01-2007

kWo:

Loaded V3B17 on our team csdm server and all is well. thanx.


Idle at #t1
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com