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

[TF2] [DoDS] Class Restrictions for individual players


Post New Thread Reply   
 
Thread Tools Display Modes
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 12-21-2008 , 05:09   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #21

L 12/20/2008 - 07:17:19: SourceMod error session started
L 12/20/2008 - 07:17:19: Info (map "pl_badwater") (file "errors_20081220.log")
L 12/20/2008 - 07:17:19: [SM] Native "GetClientAuthString" reported: Client 18 is not connected
L 12/20/2008 - 07:17:19: [SM] Displaying call stack trace for plugin "sm_class_block.smx":
L 12/20/2008 - 07:17:19: [SM] [0] Line 108, /home/groups/alliedmodders/forums/files/2/4/5/7/3/34599.attach::GetClassData()
L 12/20/2008 - 07:17:19: [SM] [1] Line 71, /home/groups/alliedmodders/forums/files/2/4/5/7/3/34599.attach::OnClientPostAdminCheck()
__________________

DontWannaName is offline
redelflee
New Member
Join Date: Apr 2009
Old 04-14-2009 , 13:41   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #22

im runing a dods server and i added your mod. i want to know if i can added to mani-admin and not sourcemod admin ? if i can how do i do it and how will it work
redelflee is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 09-09-2009 , 20:50   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #23

Just as an FYI - this plugin can be used to prevent certain steam communities from playing medic.....e.g those players/communities who decide not to heal anyone with a halo...(not gonna mention any names!)

If you want a cfg file of Steam ids of those communities, PM StevoTVR or myself.
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
kater1234
Junior Member
Join Date: Jul 2012
Old 03-23-2013 , 14:27   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #24

do i have to restart the server after installing the plugin
kater1234 is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 03-24-2013 , 10:26   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #25

Nope.
Just change the map.
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
DerpVulpes
Junior Member
Join Date: Dec 2013
Old 10-26-2014 , 17:18   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #26

Awesome plugin, I use it very heavily on my Halloween server with spell enabled on every map to block Engy class. However despite the block sometimes players were able to choose the blocked class. Switching between servers etc. So I took the liberty of editing it a bit for myself. Hope you don't mind if I upload my version, maybe someone will use it.
Basically I changed the way, plugin choose alt class if the selected can't be used (instead of previous one, it chooses the first available), it also kicks player if every class is blocked for him, also when the player is blocked from playing certain class while he's playing as that class, he will be sent to spectators and basically be forced to change it. Also I added a small force say command as a very primitive log system, if the player tries to use blocked class (line 85).
Attached Files
File Type: sp Get Plugin or Get Source (sm_class_block.sp - 397 views - 16.5 KB)
DerpVulpes is offline
mewbie222
Senior Member
Join Date: May 2018
Old 08-15-2019 , 05:43   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #27

But whether it is possible to make the ban on weapons has been the # 1 card type in memory would hold the plug all the bans for the players . And I would like to fasten(to mix) with these plugins https://forums.alliedmods.net/showthread.php?p=1364793 or https://forums.alliedmods.net/showthread.php?p=2080416 or even to your team to add some sort of ban on weapons. And by the way why is this plugin in DoD:s a little Moody is wrong to prohibit and allow for players of a certain weapon . Sorry for bad English

Last edited by mewbie222; 08-15-2019 at 05:44.
mewbie222 is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 10-23-2019 , 12:55   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #28

This works for TF2 for individual players.


Can this plugin be editied, so it can be applied to the whole team.
__________________
ph is offline
mewbie222
Senior Member
Join Date: May 2018
Old 11-07-2019 , 03:21   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #29

Became badly run the plugin in DoD:s
installed this plugin yesterday, some players bypass it. That is, the ban does not work. They say that they simply press 2-4 times to take a prohibited weapon and they receive it.

Last edited by mewbie222; 11-10-2019 at 03:32.
mewbie222 is offline
mewbie222
Senior Member
Join Date: May 2018
Old 07-11-2021 , 02:18   Re: [TF2] [DoDS] Class Restrictions for individual players
Reply With Quote #30

Is it possible to add a ban on weapons, at the SDKHook level, as I understand it, this should be used:
SDKHook_WeaponEquip, SDKHook_WeaponCanUse or ...
And sometimes the plugin does not work for some players, I wrote about this above.
mewbie222 is offline
Reply


Thread Tools
Display Modes

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 12:53.


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