[DOD:s]fix [DoDS] Class Restrictions for individual players..
there is such a plugin https://forums.alliedmods.net/showthread.php?t=81610 for DOD:s . In general, the problem is that some players somehow manage to "deceive = bypass" him .. And they can take the weapon blocked from their class.
Someone told me that like they very many times or quickly nadialied the choice of the player's class ... I can’t understand how they do it .. Maybe there is a way to remake it a little differently. Quote:
|
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
not sure.
So you not use in game convars ? PHP Code:
|
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Quote:
And the plugin closes a certain class to a certain player ([DoDS] Class Restrictions for individual players)... So sometimes some players, when a certain class is closed for them, this plugin is somehow bypassed = cheaters use some kind of hack or chip, and take the class that is forbidden from them. That is, for them, the admin ban in the form of a plug-in for the class is nonsense, which put a ban on, say, a sniper, no, they still manage to take it (the sniper class), but in the sense of a weapon class. I began to look at the code, and there is not an extra "else" in this block? Here is a piece of code (highlighted in red): Quote:
|
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
ok.
Code:
L 12/15/2022 - 11:18:38: [SM] Exception reported: Array index out-of-bounds (index -2, limit 10) *edit You can disable this with mp_allowrandomclass 0 |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Quote:
thanks for the advice, we'll try, maybe this is really a mistake. upd:nope did not help, still managed to take to get a blocked class. so far this command has not helped ... but for now they checked, when the 1st time was chosen, the class was blocked for the player, as soon as he sharply clicks again on the same blocked class for the player, the player can open the class. |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Hard to say, plugin look event what happens after player chose class, then plugin prevent this by sending fakeclient command to join back old class.
When player join server, default class is 1 (assault), so block maybe not work on that class 100% And maybe game not accecpt everytime multiple client commands in single frame. So, instead fixing that plugin, I have start looking in game functions. Code:
bool CDODGameRules::CanPlayerJoinClass( CDODPlayer *pPlayer, int cls ) *edit Also, server can send to client ConVar value (mp_limit_axis_rifleman 0). This will show on client screen in class menu that class is full/limited, but it not prevent player to choose it though. But it is nice indicator. |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Quote:
And so I had 3 versions of execution or rewrite this code using SDHook, but I don’t know how everything will be in this regard., if I wrote about it in the first message Quote:
and 3 play around with it Quote:
ps I hope I spelled it out clearly |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Bacardi, I thought I decided to try using SDKHook_WeaponCanUse , it seems like it should work when changing (player_changeclass) ..A little later I'll post the finished code, as I can write on the joint venture, all of a sudden where the error will be.
and event player_shoot , to try, at least as it does not allow playing with a forbidden class.. |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
ok, try that.
I have build class restriction, but I struggle to make good menu options. After that I add that SDKHook weapon can use check also. If I get this plugin done, I release whole :crab: in here this topic. |
Re: [DOD:s]fix [DoDS] Class Restrictions for individual players..
Bacardiok, Ok, otherwise, to be honest, from me the writer on the joint venture is still%)))
But I’m also trying to do something and somehow, either redo it or write it .. But so far everything turns out crooked. Let’s just say it’s wrong according to the rules of scripting .. At least in this way, I’ll be able to do something to remake it under DODs, otherwise they completely forgot it, even insulting. .. |
All times are GMT -4. The time now is 17:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.