AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Auto-ready for pug mod (https://forums.alliedmods.net/showthread.php?t=332534)

chinga 05-17-2021 19:23

Auto-ready for pug mod
 
After trying to use smiley's pug mode, I decided to go back to p1mp's pug and mod it a little bit. Here is the link to this mod from this forum: https://forums.alliedmods.net/showthread.php?t=168906

I am trying to force players to automatically be ready when they enter the server, but it doesn't work.

I tried to add the Prepare() function in several places where I see the function "is_user_connected()".. but none of them makes the players be ready when they log to the server

Any help would be appreciated

chinga 05-18-2021 09:42

Re: Auto-ready for pug mod
 
Please help? I'm on it for 2 days straight. I didn't upload any code because the plugin is only made of 1 file which is in the link, and also the only code I changed was to add the "Prepare" function every place a new user logs in (of course it is not the correct way, but I just want to see if any of them would make new plays become ready as soon as they enter the prac mode and into a team)

fysiks 05-18-2021 22:55

Re: Auto-ready for pug mod
 
First off, why did you abandon the other plugin? Which plugin are you actually using? It's a bit of a waste of time to try and help you modify two plugins when you're only going to be using one of them in the end.

Quote:

Originally Posted by chinga (Post 2747193)
Please help? I'm on it for 2 days straight. I didn't upload any code because the plugin is only made of 1 file which is in the link

If you're going to be requesting help for modifying plugins, you're going to need to get used to posting the code with your changes. We can't help you without seeing what you've done. If it's trivial changes like you suggest, you need to be more specific and probably post a code snippet of where you made changes.

Quote:

Originally Posted by chinga (Post 2747193)
the only code I changed was to add the "Prepare" function every place a new user logs in (of course it is not the correct way, but I just want to see if any of them would make new plays become ready as soon as they enter the prac mode and into a team)

Did you get any errors? Where did you put it? Maybe we should first ask, does the plugin even work normally?

Putting it at the end of client_putinserver() might work but I expect this will introduce bugs. More than likely, you'll need to do it when someone joins a team (if that functionality isn't already in here, you can find it on the forums).


All times are GMT -4. The time now is 02:30.

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