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

[L4D2]AFK Manager Modification / Help Requests


Post New Thread Reply   
 
Thread Tools Display Modes
notyouraverage
Junior Member
Join Date: Apr 2021
Old 05-12-2021 , 09:08   Re: [L4D2]AFK Manager Modification / Help Requests
Reply With Quote #11

Quote:
Originally Posted by Darkwob View Post
Thank you for your help. but there is a problem like this. When a player writes !idle it does not give an print. normally the player was supposed to send a message to the spectator team that he had passed. But otherwise, when the player remains stationary, he can switch to the spectator team. Thank you for this correction, he also gives a printout on the chat screen that he has passed to the spectator team.
done. have fun
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_afk__fix.sp - 77 views - 12.1 KB)
notyouraverage is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 05-14-2021 , 16:35   Re: [L4D2]AFK Manager Modification / Help Requests
Reply With Quote #12

Quote:
Originally Posted by notyouraverage View Post
done. have fun
Thank you very much, I will get back to you after testing it.
Darkwob is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 05-17-2021 , 06:24   Re: [L4D2]AFK Manager Modification / Help Requests
Reply With Quote #13

Quote:
Originally Posted by notyouraverage View Post
done. have fun
Hi bro, the plugin is working successfully. but I realized there was a problem like this. Once a player was afk he would normally give a countdown message, no longer show him. can you solve this problem too?


PHP Code:
                        if (!IsRoot(client))
                            
PrintToChat(client"\x04[\x05AFK Manager\x04]\x01 You can spectate for \x04%d\x01 more seconds before you will be kicked."RoundToFloor(maxAfkKickTime specTime[client]));
                        
lastMessage[client] = GetClientTime(client);
                    }
                    if (
GetClientTime(client) - lastMessage[client] >= joinTeamInterval
                    {
                        if (!
IsRoot(client))
                            
PrintToChat(client"\x04[\x05AFK Manager\x04]\x01 Say \x05!join\x01 to join game.");
                        
lastMessage[client] = GetClientTime(client);
                    }
                } 
Also, can you prevent Survivor Da dead players from passing the spectator team by typing !Idle? Finally, I noticed one thing that a lot of players go to the spectator team using the command !idle in order not to die. Can you add a countdown to prevent this? After 15 seconds, he can make it to the audience team. Can you print it as a printhinttext?

like this
PHP Code:
PrinHinttext("After x seconds you will be afk"

Last edited by Darkwob; 05-17-2021 at 06:31.
Darkwob 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 21:41.


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