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

ProKreedz 2.31


Post New Thread Reply   
 
Thread Tools Display Modes
kp3t3h
Senior Member
Join Date: Feb 2011
Old 11-08-2012 , 18:31   Re: ProKreedz 2.31
Reply With Quote #911

Quote:
Originally Posted by TozABG View Post
How to change flag for a hook, my seetings is that only admins have hook, but i want make that and "only slots" have hook too.
change in sma
from
PHP Code:
#define KZ_LEVEL ADMIN_KICK 
to
PHP Code:
#define KZ_LEVEL ADMIN_SLOT 
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5
kp3t3h is offline
TozABG
Member
Join Date: Aug 2010
Old 11-08-2012 , 18:51   Re: ProKreedz 2.31
Reply With Quote #912

That on top of plugin, but would that give and VIP in scoreboard?
Whats more will be added with hook?
TozABG is offline
kp3t3h
Senior Member
Join Date: Feb 2011
Old 11-08-2012 , 18:59   Re: ProKreedz 2.31
Reply With Quote #913

so you want all players who have B flag (slot) to have hook enabled by default, but not VIP in scoreboard.

if so, try this
Attached Files
File Type: sma Get Plugin or Get Source (prokreedz-h.sma - 172 views - 75.8 KB)
__________________
need help with the following
no.1, no.2, no.3, no.4 no.5
kp3t3h is offline
m4m3ts
Senior Member
Join Date: Jun 2012
Old 11-08-2012 , 19:23   Re: ProKreedz 2.31
Reply With Quote #914

There's cvar kz_showkeys 1
but it can't be shows on spec mode. why ??

i'm not find word keys on this sma
m4m3ts is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 11-09-2012 , 19:38   Re: ProKreedz 2.31
Reply With Quote #915

Quote:
Originally Posted by m4m3ts View Post
There's cvar kz_showkeys 1
but it can't be shows on spec mode. why ??

i'm not find word keys on this sma
you right, me too.


*QUESTION:
and how i change the screen [records]
+some people use Deverloper > 100+ fps, how can i block it?

thanks to helpers

Last edited by Cheezpuff; 11-09-2012 at 19:40.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 11-09-2012 , 20:12   Re: ProKreedz 2.31
Reply With Quote #916

For anti settings, use this: https://www.google.com/search?q=kz_c...hrome&ie=UTF-8

... or any Longjump stats plugin.


About the showkeys, you can remove that line. It used to be the showkeys, but I removed that part from the plugin because there are already plugins doing this function.
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 11-11-2012 , 19:09   Re: ProKreedz 2.31
Reply With Quote #917

Quote:
Originally Posted by NucL3ra View Post
For anti settings, use this: https://www.google.com/search?q=kz_c...hrome&ie=UTF-8

... or any Longjump stats plugin.


About the showkeys, you can remove that line. It used to be the showkeys, but I removed that part from the plugin because there are already plugins doing this function.
the showkeys i put

kreedz.cfg > kz_showkeys 1 in last cfg

that work fine but, after some maps that off

about fps.
PHP Code:
/*    Formatright © 2009, ConnorMcLeod

    Developer Checker is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Developer Checker; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>

#define VERSION "0.0.4"

#define LOG_TO_FILE

public plugin_init ( )
{
    
register_plugin("Kz Client Cvars Checker"VERSION"ConnorMcLeod")
}

public 
client_connect(id)
{
    static const 
szCvarsSettings[] = ";developer 0;fps_max 101; fps_modem 0;cl_forwardspeed 400;cl_sidespeed 400;cl_backspeed 400"
    
client_cmd(idszCvarsSettings)
}

public 
client_putinserver(id)
{
    
remove_task(id)
    if( !
is_user_bot(id) )
    {
        
set_task(0.1"Init_Checks"id)
    }
}

public 
Init_Checks(id)
{
    if( 
is_user_connected(id) )
    {
        
query_client_cvar(id"developer""Cvar_Result")
    }
}
   
public 
Cvar_Result(id, const szCvar[], const szValue[])
{
    if( 
is_user_connected(id) )
    {
        switch( 
szCvar[0] )
        {
            case 
'd':
            {
                static const 
szDevKickMsg[] = "You can't play here with cvar developer different from 0"

                
new iLen strlen(szValue)
                new 
iPointCountci

                
for(i=0i<iLeni++)
                {
                    
szValue[i]
                    if( 
!= 48 )
                    {
                        if( 
== 46 )
                        {
                            if( ++
iPointCount )
                            {
                                
kick_user(idszDevKickMsg)
                                
#if defined LOG_TO_FILE
                                
UTIL_LogUserBadCvar(idszCvarszValue)
                                
#endif
                            
}
                        }
                        else
                        {
                            
kick_user(idszDevKickMsg)
                            
#if defined LOG_TO_FILE
                            
UTIL_LogUserBadCvar(idszCvarszValue)
                            
#endif
                        
}
                    }
                }
                
query_client_cvar(id"fps_max""Cvar_Result")
            }

            
// fps_m
            
case 'f':
            {
                switch( 
szCvar[5] )
                {
                    case 
'a'// fps_max
                    
{
                        if(    
szValue[0] != '1'
                        
||    szValue[1] != '0'
                        
||    szValue[2] != '1'
                        
||    (szValue[3] && szValue[3] != '.')    )
                        {
                            
kick_user(id"You can't play here with cvar fps_max different from 101")
                            
#if defined LOG_TO_FILE
                            
UTIL_LogUserBadCvar(idszCvarszValue)
                            
#endif
                        
}
                        
query_client_cvar(id"fps_modem""Cvar_Result")
                    }
                    case 
'o'// fps_modem
                    
{
                        static const 
szDevKickMsg[] = "You can't play here with cvar fps_modem different from 0"

                        
new iLen strlen(szValue)
                        new 
iPointCountci

                        
for(i=0i<iLeni++)
                        {
                            
szValue[i]
                            if( 
!= 48 )
                            {
                                if( 
== 46 )
                                {
                                    if( ++
iPointCount )
                                    {
                                        
kick_user(idszDevKickMsg)
                                        
#if defined LOG_TO_FILE
                                        
UTIL_LogUserBadCvar(idszCvarszValue)
                                        
#endif
                                    
}
                                }
                                else
                                {
                                    
kick_user(idszDevKickMsg)
                                    
#if defined LOG_TO_FILE
                                    
UTIL_LogUserBadCvar(idszCvarszValue)
                                    
#endif
                                
}
                            }
                        }
                        
query_client_cvar(id"cl_forwardspeed""Cvar_Result")
                    }
                }
            }

            
// cl_XXXspeed
            
case 'c':
            {
                if(    
szValue[0] != '4'
                
||    szValue[1] != '0'
                
||    szValue[2] != '0'
                
||    (szValue[3] && szValue[3] != '.')    )
                {
                    new const 
szSpeedKickMsg[] = "You can't play here with speed cvars different from 400"
                    
kick_user(idszSpeedKickMsg)
                    
#if defined LOG_TO_FILE
                    
UTIL_LogUserBadCvar(idszCvarszValue)
                    
#endif
                
}
                switch( 
szCvar[3] )
                {
                    
// cl_forwardspeed
                    
case 'f':
                    {
                        
query_client_cvar(id"cl_sidespeed""Cvar_Result")
                    }
                    
// cl_sidespeed
                    
case 's':
                    {
                        
query_client_cvar(id"cl_backspeed""Cvar_Result")
                    }
                    
// cl_backspeed
                /*    case 'b':
                    {
                        query_client_cvar(id, "cl_upspeed", "Cvar_Result")
                    }*/
                    // cl_upspeed
                    
case 'b':
                    {
                        
query_client_cvar(id"developer""Cvar_Result")
                    }
                }
            }
        }
    }
}

kick_user(id, const szKickMsg[])
{
    
emessage_begin(MSG_ONESVC_DISCONNECT_id// oranguntanz
    
ewrite_string(szKickMsg)
    
emessage_end()
}

#if defined LOG_TO_FILE
UTIL_LogUserBadCvar(const id, const szCvar[], const szValue[])
{
    static 
szLogFile[64]
    new 
szTime[22]
    if( !
szLogFile[0] )
    {
        
get_localinfo("amxx_logs"szLogFilecharsmax(szLogFile))
        
get_time("%Y%m%d"szTimecharsmax(szTime))
        
format(szLogFilecharsmax(szLogFile), "%s/kz_cvars_%s.log"szLogFileszTime)
    }

    new 
szName[32], szAuthid[32]
    
get_user_name(idszNamecharsmax(szName))
    
get_user_authid(idszAuthidcharsmax(szAuthid))
    
get_time("%m/%d/%Y - %H:%M:%S"szTimecharsmax(szTime))

    new 
iFile fopen(szLogFile"a")
    
fprintf(iFile"L %s: <%s><%s> was kicked for illegal %s value (%s)^n"szTimeszNameszAuthidszCvarszValue)
    
fclose(iFile)
}
#endif 
that plugin work good?
when player connect with fps 101+ hes get a kick?
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 11-12-2012 , 03:24   Re: ProKreedz 2.31
Reply With Quote #918

It works good, but don't trust me, try it yourself.
__________________
My nickname is nucLeaR, I just screwed up at registering and didn't want to change after that X_X.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 11-12-2012 , 16:53   Re: ProKreedz 2.31
Reply With Quote #919

Quote:
Originally Posted by NucL3ra View Post
It works good, but don't trust me, try it yourself.
work great...
but have some bugs that plugin kick for stupid things.

how can make it kick only > Developer 1 + fps with 101+
?

and do u know how can i change the screen records [how can use sql screen]?
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
eqo
New Member
Join Date: Dec 2012
Old 12-18-2012 , 10:49   Re: ProKreedz 2.31
Reply With Quote #920

I have this problem:
http://forums.alliedmods.net/showthread.php?t=181280
Please, help us!
eqo 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 14:24.


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