AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2]AFK Manager Modification / Help Requests (https://forums.alliedmods.net/showthread.php?t=331813)

notyouraverage 05-12-2021 09:08

Re: [L4D2]AFK Manager Modification / Help Requests
 
1 Attachment(s)
Quote:

Originally Posted by Darkwob (Post 2746577)
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 :up:

Darkwob 05-14-2021 16:35

Re: [L4D2]AFK Manager Modification / Help Requests
 
Quote:

Originally Posted by notyouraverage (Post 2746615)
done. have fun :up:

Thank you very much, I will get back to you after testing it.

Darkwob 05-17-2021 06:24

Re: [L4D2]AFK Manager Modification / Help Requests
 
Quote:

Originally Posted by notyouraverage (Post 2746615)
done. have fun :up:

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"



All times are GMT -4. The time now is 11:16.

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