View Single Post
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-20-2023 , 11:00   Re: Anty retry for bh
Reply With Quote #9

Quote:
Originally Posted by mlibre View Post
It is a temporary solution for the trool, in the same way it can be adapted to execute the infection command... try

PHP Code:
#include <amxmodx>
#include <hamsandwich>

new is_user_retry[33]

public 
plugin_init() {
    
RegisterHam(Ham_Spawn"player""getPlayerSpawn"1)
}

public 
client_putinserver(id)
{
    
is_user_retry[id]++
}

public 
getPlayerSpawn(const id
{
    if( !
is_user_alive(id) || !is_user_connected(id) ) 
        return
        
    if(
is_user_retry[id] >= 2)
    {
        
server_cmd("amx_infect #%d"get_user_userid(id))
    }

Where in your plug-in are you checking if the player reconnected? There’s no check in this.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG