Raised This Month: $ Target: $400
 0% 

CS Pug Mod (4.0.2) [22/12/2021]


Post New Thread Reply   
 
Thread Tools Display Modes
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-19-2013 , 07:12   Re: Pug MOD XT (Rewritten)
Reply With Quote #81

Is pug_votemap, read the main thread
for pug_teamvote, explain better, because i need to modify teams, but how to?

Thanks for suggest
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 06-19-2013 at 07:13.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Jamesas007
Member
Join Date: Nov 2012
Old 07-10-2013 , 08:21   Re: Pug MOD XT (Rewritten)
Reply With Quote #82

i found 1 bug, then players select Captains, and captains choose players and game start all players cant buy ..
Jamesas007 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2013 , 19:56   Re: Pug MOD XT (Rewritten)
Reply With Quote #83

Yeah, its to not overlap the menus of captains or any vote.

Ps.
Wait a update in few days with new functions and bug more fixes

EDIT[2]: Some features

Click image for larger version

Name:	de_dust20004.jpg
Views:	3313
Size:	56.2 KB
ID:	122461 Click image for larger version

Name:	de_dust20009.jpg
Views:	978
Size:	98.6 KB
ID:	122462
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-10-2013 at 21:45.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 07-12-2013 , 22:45   Re: Pug MOD XT (Rewritten)
Reply With Quote #84

PHP Code:
#define TASK_TIMESPECT    60.0
#define SPECT_TASK    1126 
PHP Code:
public plugin_init()
{
    
register_event"TeamInfo""join_team""a")

PHP Code:
public client_putinserver(id)
{
    if(!
is_user_hltv(id))
    {
        
set_task(TASK_TIMESPECT"task_kickplayer"id SPECT_TASK)
        
g_afktime[id] = 0
    
}
    return 
PLUGIN_HANDLED

PHP Code:
public client_disconnect(id)
{
    if( 
task_existsid SPECT_TASK ))
    {
        
remove_taskid SPECT_TASK )
    }

PHP Code:
public task_kickplayer(id
{
    
id -= SPECT_TASK
    
    server_cmd
("kick #%d ^"Stay in spectator mode is not tolerated1 minute.^""get_user_userid(id))

PHP Code:
public join_team()
{
    new 
id read_data(1)
    static 
user_team[32]
    
read_data(2user_team31)
    
    if(!
is_user_connected(id)) return PLUGIN_CONTINUE
    
    
switch(user_team[0])
    {
        case 
'C':  
        {
            
remove_taskid SPECT_TASK )
        }
        
        case 
'T'
        {
            
remove_taskid SPECT_TASK )
        }
    }
    return 
PLUGIN_CONTINUE

SERVER CRASH..!!! unsupported HLDS 6027
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <sockets>

#pragma semicolon 1

new g_HLTV[] = "[HLTV]";

new 
g_Address;
new 
p_Host,p_Port,p_Pass;

public 
plugin_init()
{
    
register_plugin("HLTV (Beta)",AMXX_VERSION_STR,"AMXX Dev Team");
    
    
g_Address     get_cvar_pointer("net_address");
    
    
p_Host         register_cvar("hltv_host","XXX.XXX.XXX.XXX",FCVAR_PROTECTED);
    
p_Port         register_cvar("hltv_port","XXXXX",FCVAR_PROTECTED);
    
p_Pass         register_cvar("hltv_pass","XXXXX",FCVAR_PROTECTED);
    
    
register_concmd("hltv_rcon","HLTV_Rcon",ADMIN_RCON,"<Command>");
    
register_concmd("hltv_record","HLTV_Record",ADMIN_RCON,"<File>");
    
register_concmd("hltv_stop","HLTV_Stop",ADMIN_RCON,"- Removes the HLTV from server");
}

public 
HLTV_Rcon(id,level,cid)
{
    if(!
cmd_access(id,level,cid,2)) return PLUGIN_HANDLED;
    
    new 
szHost[32],szPass[32];
    
get_pcvar_string(p_Host,szHost,charsmax(szHost));
    
get_pcvar_string(p_Pass,szPass,charsmax(szPass));
    
    new 
szCommand[128];
    
read_args(szCommand,charsmax(szCommand));
    
remove_quotes(szCommand);
    
    
Rcon_Command(szHost,get_pcvar_num(p_Port),szPass,szCommand);
    
    return 
PLUGIN_HANDLED;
}

public 
HLTV_Record(id,level,cid)
{
    if(!
cmd_access(id,level,cid,2)) return PLUGIN_HANDLED;
    
    new 
szHost[32],szPass[32];
    
get_pcvar_string(p_Host,szHost,charsmax(szHost));
    
get_pcvar_string(p_Pass,szPass,charsmax(szPass));
    
    new 
szFile[32];
    
read_args(szFile,charsmax(szFile));
    
remove_quotes(szFile);
    
    new 
szAddress[32];
    
get_pcvar_string(g_Address,szAddress,charsmax(szAddress));

    new 
szCommand[128];
    
formatex(szCommand,charsmax(szCommand),"connect %s;record %s;autoretry 1",szAddress,szFile);
    
    
Rcon_Command(szHost,get_pcvar_num(p_Port),szPass,szCommand);
    
    
console_print(id,"%s Trying to connect in ^"%s^" (And recording in the file ^"%s^")",g_HLTV,szAddress,szFile);
    
    return 
PLUGIN_HANDLED;
}

public 
HLTV_Stop(id,level,cid)
{
    if(!
cmd_access(id,level,cid,1)) return PLUGIN_HANDLED;
    
    new 
szHost[32],szPass[32];
    
get_pcvar_string(p_Host,szHost,charsmax(szHost));
    
get_pcvar_string(p_Pass,szPass,charsmax(szPass));
    
    
Rcon_Command(szHost,get_pcvar_num(p_Port),szPass,"stop;disconnect;autoretry 0");
    
    
console_print(id,"%s O HLTV Disconnected!",g_HLTV);

    return 
PLUGIN_HANDLED;
}

stock Rcon_Command(const szHost[],iPort,const szPass[],const szCommand[])
{
    new 
iError;
    new 
iSocket socket_open(szHost,iPort,SOCKET_UDP,iError);
    
    switch(
iError)
    {
        case 
1:
        {
            
socket_close(iSocket);
            
server_print("* Error on creating the socket.");
            
            return 
PLUGIN_HANDLED;
        }
        case 
2:
        {
            
socket_close(iSocket);
            
server_print("* Error on resolve the given hostname.");
            
            return 
PLUGIN_HANDLED;
        }
        case 
3:
        {
            
socket_close(iSocket);
            
server_print("* Error on connecting.");

            return 
PLUGIN_HANDLED;
        }
    }
    
    new 
iSend[256],szCmd[256],szRcon[32],szNone[64];
    
    
formatex(iSend,sizeof(iSend),"%c%c%c%cchallenge rcon",255,255,255,255);
    
socket_send2(iSocket,iSend,charsmax(iSend));
    
    if(!
socket_change(iSocket,2000000)) // If socket not change in 2 seconds, then stop it
    
{
        
socket_close(iSocket);
        
server_print("* No response from %s:%d",szHost,iPort);

        return 
PLUGIN_HANDLED;
    }
    
socket_recv(iSocket,szCmd,charsmax(szCmd));
    
parse(szCmd,szNone,charsmax(szNone),szNone,charsmax(szNone),szRcon,charsmax(szRcon));
    
    
formatex(szCmd,sizeof(szCmd),"%c%c%c%crcon %s ^"%s^" %s",255,255,255,255,szRcon,szPass,szCommand);
    
socket_send2(iSocket,szCmd,charsmax(szCmd));
    
    if(
socket_change(iSocket))
    {
        new 
szBuffer[2048];
        
socket_recv(iSocket,szBuffer,charsmax(szBuffer));

        
server_print(szBuffer);
    }
    
socket_close(iSocket);

    return 
PLUGIN_HANDLED;

Attached Files
File Type: sma Get Plugin or Get Source (pug_afktime.sma - 641 views - 5.1 KB)
__________________

Last edited by kwpd; 07-12-2013 at 22:59.
kwpd is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-13-2013 , 08:50   Re: Pug MOD XT (Rewritten)
Reply With Quote #85

kkkk really good joke:

PHP Code:
    register_plugin("AFK Kicker","1.0b","Cheesy Peteza"
And i not need a anti afk kicker in mod, because if player is not type .ready and not stay in any team will be kicked in specified time.

And if you need a good afk kicker, try this (fixed by my self)

About HLTV i will test later, for me works fine i not sure about last relase of Amx Mod X

Ps. Original thread: http://forums.alliedmods.net/showthread.php?t=15106
Attached Files
File Type: sma Get Plugin or Get Source (pbk.sma - 769 views - 6.8 KB)
File Type: txt AFK.txt (575 Bytes, 204 views)
File Type: cfg amxx.cfg (326 Bytes, 136 views)
File Type: txt time.txt (358 Bytes, 198 views)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-17-2013 at 12:06.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 07-13-2013 , 10:33   Re: Pug MOD XT (Rewritten)
Reply With Quote #86

hltv_record demos/test
hltv_stop

amx_map or map "de_dust2"

hltv_record demos/test
SERVER Crash amxmodx 1.8.2

AFK KICK

original
http://forums.alliedmods.net/showthread.php?t=23332

modification
PHP Code:
/* 

*    Author:        Cheesy Peteza, remaked to meckelburg_final by greve
*    Date:        18-Mar-2004 


*    Description:    A generic AFK Kicker that should work with nearly all Half-Life mods. 
*            Tested with Natural-Selection v3.0 beta 3, Counter-Strike 1.6 and Day of Defeat. 

*    Cvars: 
*            mp_afktime 300        Time a player is allowed to be AFK in seconds before they are kicked. (minimum 30 sec) 
*                        They time is only accumulated while they are alive. 
*            mp_afkminplayers 0    Minimum number of players required to be on the server before the plugin starts kicking. 


*    Requirements:    AMXModX 


*/ 

#include <amxmodx>
#include <cstrike>
#include <fun>

#define MIN_AFK_TIME 30        // I use this incase stupid admins accidentally set mp_afktime to something silly. 
#define WARNING_TIME 15        // Start warning the user this many seconds before they are about to be kicked. 
#define CHECK_FREQ 5        // This is also the warning message frequency. 

#define PLUGIN "AFK kick"
#define VERSION "1.3"
#define AUTHOR "Twilight Suzuka"

#define TASK_TIMESPECT    60.0
#define SPECT_TASK    1126

new g_oldangles[33][3]
new 
g_afktime[33]
new 
bool:g_spawned[33] = {true, ...}

new 
gJailOne[3] = {-2710,2214,-314}
new 
gJailTwo[3] = {-2710,2082,-314}
new 
gJailThree[3] = {-2710,1949,-314}

new 
cvr_afktime_enabled

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_plugin("AFK Kicker","1.0b","Cheesy Peteza")
    
register_cvar("afk_version""1.0b"FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY)
    
    
register_cvar("mp_afktime""90")    // Kick people AFK longer than this time 
    
register_cvar("mp_afkminplayers""0")    // Only kick AFKs when there is atleast this many players on the server 
    
cvr_afktime_enabled register_cvar("amx_afktime_enabled""1")
    
    
set_task(float(CHECK_FREQ),"checkPlayers",_,_,_,"b")
    
    
register_event"TeamInfo""join_team""a")
    
register_event("ResetHUD""playerSpawned""be")


public 
client_connect(id)
{
    
g_afktime[id] = 0
    
return PLUGIN_HANDLED
}

public 
client_putinserver(id)
{
    if(!
is_user_hltv(id))
    {
        
set_task(TASK_TIMESPECT"task_kickplayer"id SPECT_TASK)
        
g_afktime[id] = 0
    
}
    return 
PLUGIN_HANDLED
}

public 
client_disconnect(id)
{
    if( 
task_existsid SPECT_TASK ))
    {
        
remove_taskid SPECT_TASK )
    }
}

public 
task_kickplayer(id
{
    
id -= SPECT_TASK
    
    server_cmd
("kick #%d ^"Stay in spectator mode is not tolerated1 minute.^""get_user_userid(id))
}

public 
join_team()
{
    new 
id read_data(1)
    static 
user_team[32]
    
read_data(2user_team31)
    
    if(!
is_user_connected(id)) return PLUGIN_CONTINUE
    
    
switch(user_team[0])
    {
        case 
'C':  
        {
            
remove_taskid SPECT_TASK )
        }
        
        case 
'T'
        {
            
remove_taskid SPECT_TASK )
        }
    }
    return 
PLUGIN_CONTINUE
}

public 
checkPlayers()
{
    if(
get_pcvar_num(cvr_afktime_enabled)) 
    {
        for (new 
1<= get_maxplayers(); i++)
        {
            if (
is_user_alive(i) && is_user_connected(i) && !is_user_bot(i) && !is_user_hltv(i) && g_spawned[i])
            {
                new 
newangle[3]
                
get_user_origin(inewangle)
                
                if ( 
newangle[0] == g_oldangles[i][0] && newangle[1] == g_oldangles[i][1] && newangle[2] == g_oldangles[i][2] )
                {
                    
g_afktime[i] += CHECK_FREQ
                    check_afktime
(i)
                }
                else
                {
                    
g_oldangles[i][0] = newangle[0]
                    
g_oldangles[i][1] = newangle[1]
                    
g_oldangles[i][2] = newangle[2]
                    
g_afktime[i] = 0
                
}
            }
        }
    }
    return 
PLUGIN_HANDLED
}

public 
check_afktime(id)
{
    if(
get_pcvar_num(cvr_afktime_enabled))
    {
        new 
numplayers get_playersnum()
        new 
minplayers get_cvar_num("mp_afkminplayers")
        
        new 
origin[3]
        
get_user_origin(id,origin,0)
        
        if ((
numplayers >= minplayers))
        {
            new 
maxafktime get_cvar_num("mp_afktime")
            
            if (
maxafktime MIN_AFK_TIME)
            { 
                
log_amx("cvar mp_afktime %i is too low. Minimum value is %i."maxafktimeMIN_AFK_TIME)
                
maxafktime MIN_AFK_TIME
                set_cvar_num
("mp_afktime"MIN_AFK_TIME)
            }
            
            if(
get_distance(gJailOne,origin) >= 100 && get_distance(gJailTwo,origin) >= 100 && get_distance(gJailThree,origin) >= 100)  
            {  
                if (
g_afktime[id] > maxafktime)
                {
                    new 
name[32]
                    
get_user_name(idname31
                    
log_amx("%s was kicked for being AFK longer than %i seconds"namemaxafktime
                    
server_cmd("kick #%d ^"You were kicked for being AFK longer than %i seconds^""get_user_userid(id), maxafktime
                }
            }
            else 
g_afktime[id] = 0
        
}
    }
}

public 
playerSpawned(id)

    
g_spawned[id] = false
    
new sid[1]
    
sid[0] = id
    set_task
(0.75"delayedSpawn",_sid1)    // Give the player time to drop to the floor when spawning 
    
return PLUGIN_HANDLED


public 
delayedSpawn(sid[])
{
    
get_user_origin(sid[0], g_oldangles[sid[0]])
    
g_spawned[sid[0]] = true
    
return PLUGIN_HANDLED

"^SmileY" AFK KICK

original
http://forums.alliedmods.net/showthread.php?t=15106

Your modification looks pretty good .. as you integrate PUG.sma
separately or will have?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

#include <AFK_TIME>

#pragma semicolon 1

#define IMMUNITY ADMIN_IMMUNITY

#define CHECK_FREQ     5

#define EVENT_JOIN     1
#define EVENT_SPEC     2
#define EVENT_AFK      4

#define MAX_PLAYER_CNT 33
#define MAX_COORD_CNT   3

new g_playerJoined[MAX_PLAYER_CNT],g_playerSpawned[MAX_PLAYER_CNT];
new 
g_timeJoin[MAX_PLAYER_CNT],g_timeSpec[MAX_PLAYER_CNT], g_timeAFK[MAX_PLAYER_CNT];
new 
g_prevCoords[MAX_PLAYER_CNT][MAX_COORD_CNT];

new 
bool:g_roundInProgress false;

new 
JOIN_PLAYERS,SPEC_PLAYERS,AFK_PLAYERS;
new 
JOIN_TIME,SPEC_TIME,AFK_TIME;
new 
AFK_IMMUNITY,AFK_IMMUNITY_WARNING,AFK_WARNING_TIME;

public 
plugin_init()
{
    
register_plugin("Anti AFK (Play or Be Kicked)",AMXX_VERSION_STR,"Brad Jones");

    
register_dictionary("AFK.txt");
    
register_dictionary("time.txt");

    
register_event("ResetHUD","event_resethud","be");
    
register_forward(FM_PlayerPostThink,"fm_playerPostThink");

    
register_logevent("event_round_start",2,"0=World triggered","1=Round_Start");
    
register_logevent("event_round_end",2,"0=World triggered","1=Round_End");
    
    
JOIN_PLAYERS     register_cvar("afk_join_min","1");     // Minimo de jogadores
    
SPEC_PLAYERS     register_cvar("afk_spec_min","1");     // Minimo de jogadores
    
AFK_PLAYERS     register_cvar("afk_afk_min","1");     // Minimo de jogadores

    
JOIN_TIME     register_cvar("afk_join_time","30");     // Tempo para escolher um time
    
SPEC_TIME     register_cvar("afk_spec_time","60");     // Tempo para ficar de espectador
    
AFK_TIME     register_cvar("afk_afk_time","120");     // Tempo para ficar Away

    
AFK_IMMUNITY         register_cvar("afk_immunity","1");
    
AFK_IMMUNITY_WARNING     register_cvar("afk_immunity_warning","1");
    
AFK_WARNING_TIME     register_cvar("afk_warning_time","15");

    
set_task(float(CHECK_FREQ),"check_players", .flags="b");
}

public 
fm_playerPostThink(id)
{
    if(!
g_playerJoined[id] && is_user_connected(id))
    {
        if(
cs_get_user_team(id) != CS_TEAM_UNASSIGNEDg_playerJoined[id] = true;
    }
}

public 
client_disconnect(id)
{
    
g_playerJoined[id]     = false;
    
g_playerSpawned[id]     = false;
    
    
g_timeJoin[id]         = 0;
    
g_timeSpec[id]         = 0;
    
g_timeAFK[id]         = 0;
}

public 
event_resethud(id)
{
    if(!
g_playerSpawned[id]) g_playerSpawned[id] = true;
}

public 
event_round_end()
{
    
g_roundInProgress false;
}

public 
event_round_start()
{
    new 
iPlayers[32],iNum,Players;
    
get_players(iPlayers,iNum,"ch");
    
    for(new 
i;iNum;i++)
    {
        
Players iPlayers[i];

        
get_user_origin(Players,g_prevCoords[Players],3);
    }
    
g_roundInProgress true;
}

public 
check_players()
{
    new 
playerCnt get_playersnum();
    new 
eventType,curCoords[MAX_COORD_CNT];

    new 
bool:checkJoinStatus = (get_pcvar_num(JOIN_TIME) && playerCnt >= get_pcvar_num(JOIN_PLAYERS));
    new 
bool:checkSpecStatus = (get_pcvar_num(SPEC_TIME) && playerCnt >= get_pcvar_num(SPEC_PLAYERS));
    new 
bool:checkAFKStatus  = (get_pcvar_num(AFK_TIME) && playerCnt >= get_pcvar_num(AFK_PLAYERS) && g_roundInProgress);

    for(new 
id 1;id <= get_maxplayers();id++)
    {
        if(!
is_user_connected(id) || is_user_bot(id) || is_user_hltv(id)) continue;

        if(
g_playerJoined[id])
        {
            
eventType = (cs_get_user_team(id) == CS_TEAM_SPECTATOR) ? EVENT_SPEC EVENT_AFK;

            if(
eventType == EVENT_AFK && checkAFKStatus && g_playerSpawned[id] && is_user_alive(id))
            {
                
get_user_origin(idcurCoords,3);

                if(
g_prevCoords[id][0] == curCoords[0] && g_prevCoords[id][1] == curCoords[1] && g_prevCoords[id][2] == curCoords[2])
                {
                    
g_timeAFK[id] += CHECK_FREQ;
                }
                else
                {
                    
g_prevCoords[id] = curCoords;
                    
                    
g_timeAFK[id] = 0;
                }
            }
            else if(
eventType == EVENT_SPEC && checkSpecStatusg_timeSpec[id] += CHECK_FREQ;

            else continue;
        }
        else
        {
            
eventType EVENT_JOIN;

            if(
checkJoinStatusg_timeJoin[id] += CHECK_FREQ;

            else continue;
        }
        
handle_time_elapsed(id,eventType);
    }
}

public 
handle_time_elapsed(id,eventType)
{
    new 
immunityFlag     get_pcvar_num(AFK_IMMUNITY);
    new 
warningFlag     get_pcvar_num(AFK_IMMUNITY_WARNING);

    new 
maxSeconds,elapsedSeconds,eventImmunity,showWarning;

    if(
eventType == EVENT_JOIN)
    {
        
maxSeconds     get_pcvar_num(JOIN_TIME);
        
elapsedSeconds     g_timeJoin[id];
        
eventImmunity     immunityFlag EVENT_JOIN;
        
showWarning     eventImmunity warningFlag EVENT_JOIN 1;
    }
    else if(
eventType == EVENT_SPEC)
    {
        
maxSeconds     get_pcvar_num(SPEC_TIME);
        
elapsedSeconds     g_timeSpec[id];
        
eventImmunity     immunityFlag EVENT_SPEC;
        
showWarning     eventImmunity warningFlag EVENT_SPEC 1;
    }
    else if(
eventType == EVENT_AFK)
    {
        
maxSeconds     get_pcvar_num(AFK_TIME);
        
elapsedSeconds     g_timeAFK[id];
        
eventImmunity     immunityFlag EVENT_AFK;
        
showWarning     eventImmunity warningFlag EVENT_AFK 1;
    }
    else return;
    
    new 
warningStartSeconds maxSeconds get_pcvar_num(AFK_WARNING_TIME);
    
    if(
elapsedSeconds >= maxSeconds
    {
        if(
eventImmunity && get_user_flags(id) & IMMUNITY) return;

        new 
msgReason[32],msgAnnounce[32];
        
        switch(
eventType)
        {
            case 
EVENT_JOIN:
            {
                
copy(msgReason,charsmax(msgReason),"KICK_JOIN_REASON");
                
copy(msgAnnounce,31,"KICK_JOIN_ANNOUNCE");
            }
            case 
EVENT_SPEC:
            {
                
copy(msgReason,charsmax(msgReason),"KICK_SPEC_REASON");
                
copy(msgAnnounce,31,"KICK_SPEC_ANNOUNCE");
            }
            case 
EVENT_AFK:
            {
                
copy(msgReason,charsmax(msgReason),"KICK_AFK_REASON");
                
copy(msgAnnounce,31,"KICK_AFK_ANNOUNCE");
            }
        }
        new 
maxTime[128];
        
get_time_length(id,maxSeconds,timeunit_seconds,maxTime,charsmax(maxTime));

        new 
szReason[35];
        
formatex(szReason,charsmax(szReason),"%L",id,msgReason,maxTime);
        
        
Disconnect(id,szReason);
        
        new 
iPlayers[32],iNum,Players;
        
get_players(iPlayers,iNum,"ch");
        
        new 
szName[32];
        
get_user_name(id,szName,charsmax(szName));

        for(new 
i;iNum;i++)
        {
            
Players iPlayers[i];
            
            
get_time_length(Players,maxSeconds,timeunit_seconds,maxTime,charsmax(maxTime));
            
            
client_print(Players,print_chat,"[PugSP] %L",Players,msgAnnounce,szName,maxTime);
        }
    }
    else if(
warningStartSeconds <= elapsedSeconds && showWarning)
    {
        new 
msgWarning[32];
        
        switch(
eventType)
        {
            case 
EVENT_JOINcopy(msgWarning,charsmax(msgWarning),"KICK_JOIN_WARNING");
            case 
EVENT_SPECcopy(msgWarning,charsmax(msgWarning),"KICK_SPEC_WARNING");
            case 
EVENT_AFK:  copy(msgWarning,charsmax(msgWarning),"KICK_AFK_WARNING");
        }
        
        new 
timeLeft[128];
        
get_time_length(id,maxSeconds elapsedSeconds,timeunit_seconds,timeLeft,charsmax(timeLeft));
        
        
client_print(idprint_chat,"[PugSP] %L",id,msgWarning,timeLeft);
    } 
}

stock Disconnect(const id,const szReason[] = "")
{
    
message_begin(MSG_ONE,SVC_DISCONNECT,_,id);
    
write_string(szReason);
    
message_end();

Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	320
Size:	96.8 KB
ID:	122605  
__________________

Last edited by kwpd; 07-13-2013 at 10:35.
kwpd is offline
Jamesas007
Member
Join Date: Nov 2012
Old 07-13-2013 , 12:44   Re: Pug MOD XT (Rewritten)
Reply With Quote #87

and onother bug, my cvar pug_overtime_vote "0" and we play 5x5 score is 15-15 , and then server is overflood or somthing what .. all people droped from server.
Jamesas007 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-13-2013 , 13:32   Re: Pug MOD XT (Rewritten)
Reply With Quote #88

About anti afk, its a 3rd party plugin i not support any thing after pug mod.
If you want to integrate, make it by you self.

I only posted a more complete Anti AFK (Its include Spec Kick, Unnasigned Kick and messages for warnings before Kick).
I Just said an anti afk its uselles if used the correct vars from pug mod.

About HLTV i not have any ideia, but try to update the server or amxx, i used the last 1.8.3-dev build from HLTV.

Quote:
Originally Posted by Jamesas007 View Post
and onother bug, my cvar pug_overtime_vote "0" and we play 5x5 score is 15-15 , and then server is overflood or somthing what .. all people droped from server.
Code:
rcon meta list
rcon version
rcon amxx plugins
I need to see the output from these commands to help you
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-13-2013 at 13:36.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Jamesas007
Member
Join Date: Nov 2012
Old 07-13-2013 , 14:48   Re: Pug MOD XT (Rewritten)
Reply With Quote #89

Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 2] NoSeeVar RUN - nsv_mm_i386.so v1.21 ini Chlvl Chlvl
[ 3] Engine RUN - engine_amxx_i386 v1.8.2 pl1 ANY ANY
[ 4] CStrike RUN - cstrike_amxx_i38 v1.8.1.3 pl1 ANY ANY
[ 5] CSX RUN - csx_amxx_i386.so v1.8.1.3 pl1 ANY ANY
[ 6] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl1 ANY ANY
[ 7] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
7 plugins, 7 running

Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:45:07 Apr 25 2013 (6027)

Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 3] Slots Reservation 1.8.1.3746 AMXX Dev Team adminslots.amxx running
[ 4] Multi-Lingual System 1.8.1.3746 AMXX Dev Team multilingual.am running
[ 5] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 6] Anti Flood 1.8.1.3746 AMXX Dev Team antiflood.amxx running
[ 7] Info. Messages 1.8.1.3746 AMXX Dev Team imessage.amxx running
[ 8] Admin Votes 1.8.1.3746 AMXX Dev Team adminvote.amxx running
[ 9] Pause Plugins 1.8.1.3746 AMXX Dev Team pausecfg.amxx running
[ 10] CS Stats Logging 1.8.1.3746 AMXX Dev Team stats_logging.a running
[ 11] PsychoStats Plugin 1.1 Stormtrooper ps_heatmaps.amx running
[ 12] ColorChat 0.1.0 ConnorMcLeod colorchat.amxx running
[ 13] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 14] Ghostchat 0.3 NetRipper ghostchat.amxx running
21:46:22 [ 15] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 16] Fix Echo Sounds 1.0 Throstur soundfix.amxx running
[ 17] Basic SkillPoints Spec 2.0.0 guipatinador BasicSkillPoint running
[ 18] MOTD 1.0 Stewie! motdLangas.amxx running
[ 19] Pug MOD XT (Rewritten) 1.8.1.3746 SmileY (And Othe PUG.amxx running
19 plugins, 19 running

CPU In Out Uptime Users FPS Players
22.00 0.00 0.00 53745 700 10494.83 0
Jamesas007 is offline
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 07-13-2013 , 14:53   Re: Pug MOD XT (Rewritten)
Reply With Quote #90

Quote:
Originally Posted by ^SmileY View Post
About anti afk, its a 3rd party plugin i not support any thing after pug mod.
If you want to integrate, make it by you self.

I only posted a more complete Anti AFK (Its include Spec Kick, Unnasigned Kick and messages for warnings before Kick).
I Just said an anti afk its uselles if used the correct vars from pug mod.

About HLTV i not have any ideia, but try to update the server or amxx, i used the last 1.8.3-dev build from HLTV.



Code:
rcon meta list
rcon version
rcon amxx plugins
I need to see the output from these commands to help you
HLTV ya se cual es la causa..... METAMOD xD
plz usen este metamod dinamico http://metamod-p.sourceforge.net/
problema solucionado

Google Traductor

HLTV and what causes it ..... Metamod xD
plz use this dynamic metamod http://metamod-p.sourceforge.net/
problem solved
__________________

Last edited by kwpd; 07-13-2013 at 15:07.
kwpd 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 20:48.


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