Raised This Month: $51 Target: $400
 12% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-20-2010 , 22:18   Re: [CSS] Weapon Restrict
Reply With Quote #511

THe restrictions are per team not per player. so if you set it to 1 it is 1 per team. So if someone buys an he before you ofc its restricted cause someone has it already. The bits on per player is referring to player count based restrictions not how many per player.
Dr!fter is offline
Raptor10
Senior Member
Join Date: Nov 2008
Old 09-21-2010 , 01:56   Re: [CSS] Weapon Restrict
Reply With Quote #512

Hi all, I got following error in my Css Beta Server updated with WR 2.3.3, Meta 1.8.3 and Source 1.3.4 :

Displaying call stack trace for plugin "weapon_restrict.smx":
L 09/21/2010 - 07:51:44: [SM] [0] Line 342, restrictinc/events.sp::RemoveWeapon()
[1] Line 180, restrictinc/events.sp::IsAllowed()
[2] Line 108, restrictinc/events.sp::EventItemPickup()
[SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod
L 09/21/2010 - 07:52:10: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
[0] Line 255, restrictinc/events.sp::GetTotal()
[SM] [1] Line 295, C:\Users\Gaming\Desktop\Organize Folder\desktop\sourcemod\SM SP\scripting\ZMy plugins\Weapon Restrict\version 2.3.3\weapon_restrict.sp::CheckPlayersWeapons ()
[SM] [2] Line 221, C:\Users\Gaming\Desktop\Organize Folder\desktop\sourcemod\SM SP\scripting\ZMy plugins\Weapon Restrict\version 2.3.3\weapon_restrict.sp::EventRoundStart()

Anybody can help me to fix it ?

Thanks
Raptor10 is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 09-21-2010 , 10:54   Re: [CSS] Weapon Restrict
Reply With Quote #513

Hi, YouzAMenace
Good job as always but you forgot translate some strings in adminmenu.sp (#224, #225, #226)
PHP Code:
AddMenuItem(menu"ct""Counter Terrorists");
AddMenuItem(menu"t""Terrorists");
AddMenuItem(menu"all""All teams"); 
I replace it by this
PHP Code:
decl String:menu_item[100];
Format(menu_itemsizeof(menu_item), "%t""Counter Terrorists");
AddMenuItem(menu"ct"menu_item);
Format(menu_itemsizeof(menu_item), "%t""Terrorists");
AddMenuItem(menu"t"menu_item);
Format(menu_itemsizeof(menu_item), "%t""All teams");
AddMenuItem(menu"all"menu_item); 
and make full russian, english and polish (by Google Translate - correct me if I wrong ) translations.
See attach.
Thanks for your support of this amazing plugin.
Attached Files
File Type: zip weapon restrict 2.3.3a.zip (103.7 KB, 294 views)
File Type: zip translations.zip (3.1 KB, 224 views)
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-21-2010 , 14:17   Re: [CSS] Weapon Restrict
Reply With Quote #514

Quote:
Originally Posted by Snake60 View Post
Hi, YouzAMenace
Good job as always but you forgot translate some strings in adminmenu.sp (#224, #225, #226)
PHP Code:
AddMenuItem(menu"ct""Counter Terrorists");
AddMenuItem(menu"t""Terrorists");
AddMenuItem(menu"all""All teams"); 
I replace it by this
PHP Code:
decl String:menu_item[100];
Format(menu_itemsizeof(menu_item), "%t""Counter Terrorists");
AddMenuItem(menu"ct"menu_item);
Format(menu_itemsizeof(menu_item), "%t""Terrorists");
AddMenuItem(menu"t"menu_item);
Format(menu_itemsizeof(menu_item), "%t""All teams");
AddMenuItem(menu"all"menu_item); 
and make full russian, english and polish (by Google Translate - correct me if I wrong ) translations.
See attach.
Thanks for your support of this amazing plugin.
Cool thanks! Ive just updated the plugin to incorportate the new translations. And fix the missing translations. Enjoy the updated 2.3.4!
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-21-2010 , 14:23   Re: [CSS] Weapon Restrict
Reply With Quote #515

Quote:
Originally Posted by Raptor10 View Post
Hi all, I got following error in my Css Beta Server updated with WR 2.3.3, Meta 1.8.3 and Source 1.3.4 :

Displaying call stack trace for plugin "weapon_restrict.smx":
L 09/21/2010 - 07:51:44: [SM] [0] Line 342, restrictinc/events.sp::RemoveWeapon()
[1] Line 180, restrictinc/events.sp::IsAllowed()
[2] Line 108, restrictinc/events.sp::EventItemPickup()
[SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod
L 09/21/2010 - 07:52:10: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
[0] Line 255, restrictinc/events.sp::GetTotal()
[SM] [1] Line 295, C:\Users\Gaming\Desktop\Organize Folder\desktop\sourcemod\SM SP\scripting\ZMy plugins\Weapon Restrict\version 2.3.3\weapon_restrict.sp::CheckPlayersWeapons ()
[SM] [2] Line 221, C:\Users\Gaming\Desktop\Organize Folder\desktop\sourcemod\SM SP\scripting\ZMy plugins\Weapon Restrict\version 2.3.3\weapon_restrict.sp::EventRoundStart()

Anybody can help me to fix it ?

Thanks
It looks like there is no gamedata in any of the sourcemod releases for css beta. You can maybe make a bug report and see if they'll add beta support. I dont have a css beta server setup so i didnt test that it loaded since others confirmed it loaded with updated gamedata so i added the support into gamedata for it.
Dr!fter is offline
1nsane
SourceMod Donor
Join Date: Sep 2005
Old 09-23-2010 , 16:05   Re: [CSS] Weapon Restrict
Reply With Quote #516

I'm still getting crashes from time to time on my CSS beta rotation server.

I am using the latest gamedata for both sourcemod and this plugin.

Here's a callstack:
Code:
#0  0xf432d92e in CCSPlayer::StockPlayerAmmo(CCSWeaponInfo*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#1  0xf4330a52 in CCSPlayer::HandleCommand_Buy_Internal(char const*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#2  0xf43318c5 in CCSPlayer::ClientCommand(CCommand const&) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#3  0xf42b39b1 in CBot<CCSPlayer>::ClientCommand(CCommand const&) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#4  0xf42f1bce in BuyState::OnUpdate(CCSBot*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#5  0xf42e07cd in CCSBot::Update() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#6  0xf3f9934f in CBotManager::StartFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#7  0xf42cd001 in CCSBotManager::StartFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#8  0xf3fa7e56 in CCSGameRules::EndGameFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#9  0xf43d84e2 in CServerGameDLL::GameFrame(bool) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#10 0xef9d090f in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func(bool)
    ()
   from /home/srcds/cssbeta/cstrike_beta/addons/sourcemod/bin/sourcemod.2.ep2v.s/
Also all the weapons for warmup have very little ammo (no reload).
1nsane is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-23-2010 , 20:19   Re: [CSS] Weapon Restrict
Reply With Quote #517

It seems the plugin is not creating DownloadTables for the restrictedweapon.wav sound, it's just not downloading for me anymore.

Can anyone confirm this?
__________________
GrO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-23-2010 , 21:13   Re: [CSS] Weapon Restrict
Reply With Quote #518

Quote:
Originally Posted by GrO View Post
It seems the plugin is not creating DownloadTables for the restrictedweapon.wav sound, it's just not downloading for me anymore.

Can anyone confirm this?
I havent heard any complaints of this seems to work fine for me

Quote:
Originally Posted by 1nsane View Post
I'm still getting crashes from time to time on my CSS beta rotation server.

I am using the latest gamedata for both sourcemod and this plugin.

Here's a callstack:
Code:
#0  0xf432d92e in CCSPlayer::StockPlayerAmmo(CCSWeaponInfo*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#1  0xf4330a52 in CCSPlayer::HandleCommand_Buy_Internal(char const*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#2  0xf43318c5 in CCSPlayer::ClientCommand(CCommand const&) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#3  0xf42b39b1 in CBot<CCSPlayer>::ClientCommand(CCommand const&) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#4  0xf42f1bce in BuyState::OnUpdate(CCSBot*) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#5  0xf42e07cd in CCSBot::Update() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#6  0xf3f9934f in CBotManager::StartFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#7  0xf42cd001 in CCSBotManager::StartFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#8  0xf3fa7e56 in CCSGameRules::EndGameFrame() ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#9  0xf43d84e2 in CServerGameDLL::GameFrame(bool) ()
   from /home/srcds/cssbeta/cstrike_beta/bin/server.so
#10 0xef9d090f in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func(bool)
    ()
   from /home/srcds/cssbeta/cstrike_beta/addons/sourcemod/bin/sourcemod.2.ep2v.s/
Also all the weapons for warmup have very little ammo (no reload).
Is this the only plugin you are running?
Dr!fter is offline
Spiffy
Junior Member
Join Date: Sep 2010
Old 09-24-2010 , 13:32   Re: [CSS] Weapon Restrict
Reply With Quote #519

I was wondering if maybe you could make the awp restrict even better. I would like to set it up so that it is based on how many people are on the server. If say 10 players are on the server it is restricted to 1 per team, 20 players on it is restricted to 2 per team, etc. Is this possible? It would be awesome.
Spiffy is offline
FrozDark
BANNED
Join Date: May 2010
Location: Kazakhstan, Shymkent
Old 09-25-2010 , 01:20   Re: [CSS] Weapon Restrict
Reply With Quote #520

2Spiffy

Quote:
per player awp restrict text file goes in sourcemod/configs/restrict/perplayerrestrict.txt
(perplayerrestrict being the name of the text file used it will automaticly be placed when you extract the zip file from above)

Inside the file should look something like this.
Code:
"AwpRestrict"
{
"awp"
{
"4" "1"
"8" "3"
"12" "4"
}
}
FrozDark is offline
Send a message via Skype™ to FrozDark
Reply



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


All times are GMT -4. The time now is 16:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode