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

Auto-ready for pug mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chinga
Junior Member
Join Date: May 2021
Old 05-17-2021 , 19:23   Auto-ready for pug mod
Reply With Quote #1

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 is offline
chinga
Junior Member
Join Date: May 2021
Old 05-18-2021 , 09:42   Re: Auto-ready for pug mod
Reply With Quote #2

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)
chinga is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-18-2021 , 22:55   Re: Auto-ready for pug mod
Reply With Quote #3

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 View Post
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 View Post
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).
__________________
fysiks is offline
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 06:01.


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