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

Play or Be Kicked 1.5.243


Post New Thread Reply   
 
Thread Tools Display Modes
AuxiNN
Junior Member
Join Date: Sep 2012
Location: Jordan
Old 09-08-2012 , 01:27   Re: Play or Be Kicked 1.5.243
Reply With Quote #461

Interesting
AuxiNN is offline
Send a message via MSN to AuxiNN
S p i NNN
Junior Member
Join Date: Nov 2011
Old 11-11-2012 , 16:50   Re: Play or Be Kicked 1.5.243
Reply With Quote #462

O_o, there is still conversation about this plugin. ))) And Brad Jones is in the topic. )
I couldn't read all topic pages and I found some problem in the source.
So, does somebody use notification? It is wrong.
This one wrong:
PHP Code:
set_task(float(CHECK_FREQ), "check_players"___"b");   set_task(float(CHECK_FREQ), "check_players"___"b"); 
And this one wrong:
PHP Code:
determine_spec_time_elapsed(id)
{
    new 
timeElapsed 0;

    if (
get_pcvar_num(g_cvar_specQuery))
    {
        
g_timeSpecQuery[id] += CHECK_FREQ;
        
        if (
g_timeSpecQuery[id] == 45)
        {
            
display_spec_query(id);
        }
        else if (
g_timeSpecQuery[id] >= 55)
        {
            
timeElapsed g_timeSpecQuery[id] - CHECK_FREQ;
            
g_timeSpecQuery[id] = CHECK_FREQ;
        }
    }
    else
    {    
        
timeElapsed CHECK_FREQ;
    }

    return 
timeElapsed;

Also, this is wrong too.
PHP Code:
public plugin_cfg()
{
    new 
configDir[255];
    
formatex(configDir[get_configsdir(configDirsizeof(configDir)-1)], sizeof(configDir)-1"/");
    
server_cmd("exec %spbk.cfg"configDir);
    
server_exec();
    
    
get_pcvar_string(g_cvar_joinImmunityg_joinImmunitysizeof(g_joinImmunity)-1);
    
get_pcvar_string(g_cvar_specImmunityg_specImmunitysizeof(g_specImmunity)-1);
    
get_pcvar_string(g_cvar_afkImmunityg_afkImmunitysizeof(g_afkImmunity)-1);    

    
cycle_log_files("pbk"clamp(get_pcvar_num(g_cvar_logCnt), 011)); // must keep between 0 and 11 months

    
register_menucmd(register_menuid("pbk_AreYouThere"), (1<<0)|(1<<1), "query_answered");
    
    
set_task(float(CHECK_FREQ), "check_players"___"b");    set_task(float(CHECK_FREQ), "check_players"___"b");

And Spec Checker has bug too...


Last edited by S p i NNN; 11-15-2012 at 05:41.
S p i NNN is offline
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 04-30-2014 , 07:41   Re: Play or Be Kicked 1.5.243
Reply With Quote #463

i don't know is it a bug, or not, but the plugin warns those whom have got immunity. it doesn't do anything just countdown once.
ViBE is offline
Send a message via ICQ to ViBE
Old 11-11-2014, 21:02
ACM1PT
This message has been deleted by ACM1PT.
frAd
Member
Join Date: Apr 2014
Location: Philippines
Old 03-07-2015 , 17:21   Re: Play or Be Kicked 1.5.243
Reply With Quote #464

Quote:
Originally Posted by ViBE View Post
i don't know is it a bug, or not, but the plugin warns those whom have got immunity. it doesn't do anything just countdown once.
^

Brad, I know I'm bothering you too much but I would like to know how to disable the warn messages for people who have immunity.
__________________
frAd is offline
Send a message via ICQ to frAd Send a message via AIM to frAd Send a message via Yahoo to frAd Send a message via Skype™ to frAd
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-08-2015 , 11:37   Re: Play or Be Kicked 1.5.243
Reply With Quote #465

You're not bothering me.

The following CVAR is supposed to handle this. Is it not working?

Quote:
// Specifies which events to show the countdown warning for to players
// with immunity.
//
// The flags are additive. A value of 0 indicates that the countdown is
// not shown for any event.
//
// 1 - joining
// 2 - spectating
// 4 - being AFK
pbk_immunity_warning 7
__________________
Brad is offline
frAd
Member
Join Date: Apr 2014
Location: Philippines
Old 03-08-2015 , 11:50   Re: Play or Be Kicked 1.5.243
Reply With Quote #466

Hmmm I can't understand why is it 7? I thought the message was for people who doesn't have the inmmunity flag but I'm getting this message (without being kicked)
__________________
frAd is offline
Send a message via ICQ to frAd Send a message via AIM to frAd Send a message via Yahoo to frAd Send a message via Skype™ to frAd
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-08-2015 , 14:37   Re: Play or Be Kicked 1.5.243
Reply With Quote #467

The flags are additive. That means you add the numbers together for the options you want.

If you just wanted a countdown for the join event, you'd set it to 1. If you wanted it both for join and spectate, you'd add those numbers together and set it to 3. With all three events, it's 1 + 2 + 4 = 7.

As the text indicates, you can set it to 0 to not show the countdown, to those with immunity, for any event.
__________________
Brad is offline
frAd
Member
Join Date: Apr 2014
Location: Philippines
Old 03-09-2015 , 08:04   Re: Play or Be Kicked 1.5.243
Reply With Quote #468

Oh, I got you Brad, I tested it and it's working, thanks. My bad
__________________
frAd is offline
Send a message via ICQ to frAd Send a message via AIM to frAd Send a message via Yahoo to frAd Send a message via Skype™ to frAd
botz
AlliedModders Donor
Join Date: Jan 2015
Old 08-01-2015 , 00:41   Re: Play or Be Kicked 1.5.243
Reply With Quote #469

Brad for SPEC thing my immunity is "d" and this is pbk_spec_query 1
but my admins with "d" flag still get questions of being AFK, i want people who dont have "d" flag to get this messages, not people with immunity as in for my server "d" flag. Also for immunity people they get messages they will be kicked for being AFK , when they are in server AFK
[PBK] You have 20 seconds to start playing or you will be kicked for being AFK too long. Same with People who are in spec and are AFK on joining the team, please i dont want any questions, or kick warnings for people having immunity

Plus When it asks Are you there, it asks like a lot can you please make that question every 45 seconds.

Please help someone
__________________

Last edited by botz; 08-02-2015 at 04:18.
botz is offline
devour2
New Member
Join Date: Jan 2016
Old 01-28-2016 , 19:22   Re: Play or Be Kicked 1.5.243
Reply With Quote #470

I can't activate on my surf server this plugin , need help where what to put
I put pbk.amxx in plugins
than added pbk.ammx in new line in plugins.ini
than i put pbk.cfg in config
than i put pbk.txt
And plugin is not working , help some1 ??
devour2 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 05:08.


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