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

Knife Mode 1.8


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-11-2010 , 17:23   Knife Mode 1.8
Reply With Quote #1

Knife Mode v1.8



Description:
Well, this plugin is only fighting with knives, because the weapons can not buy or hold the floor.

Admin comands:
knifemode_on "1" - turn on/off the plugin

Credits:
fezh - (buy commands)

Change_log:
HTML Code:
v1.7 - 2010-03-12

         - Changed buy commands.
         - Optimize the plugin.
         - Changed the name of the game. 

v1.8 - 2010-04-09

         - Updated a new plugin.
 



Attached Files
File Type: sma Get Plugin or Get Source (KnifeMode.sma - 755 views - 1.3 KB)
__________________
Reality is wrong, dreams are for real.

Last edited by g_often; 04-09-2010 at 21:34.
g_often is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 03-11-2010 , 17:27   Re: Knife Mode v2.1.8
Reply With Quote #2

Registering buy commands is not a good way to disable buy from the map.

Try something like this instead:
PHP Code:
#include <fakemeta>

#define fm_set_user_nobuy(%1) set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0))

// plugin_init( )
register_messageget_user_msgid"StatusIcon" ), "Message_StatusIcon" );
// ...

public Message_StatusIconiMsgIDiMsgDestid )
{
    static 
szMessage]; 
    
get_msg_arg_string2szMessagecharsmaxszMessage ) ); 
        
    if ( 
equalszMessage"buyzone" ) && get_msg_arg_int) )
    {
        
fm_set_user_nobuyid );
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

__________________
"There is no knowledge, that is not power"
fezh is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 03-11-2010 , 17:45   Re: Knife Mode v2.1.8
Reply With Quote #3

mm , this plugin already exist, and i think, is better , from alan_el_more (approved plugin)

EDIT : http://forums.alliedmods.net/showthread.php?p=803913
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 03-11-2010 at 17:50.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 03-11-2010 , 17:52   Re: Knife Mode v2.1.8
Reply With Quote #4

Quote:
Originally Posted by lucas_7_94 View Post
mm , this plugin already exist, and i think, is better , from alan_el_more (approved plugin)

EDIT : http://forums.alliedmods.net/showthread.php?p=803913
Those are different plugins...
AfteR. is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-11-2010 , 18:47   Re: Knife Mode v2.1.8
Reply With Quote #5

Quote:
Originally Posted by fezh View Post
Registering buy commands is not a good way to disable buy from the map.

Try something like this instead:
PHP Code:
#include <fakemeta>

#define fm_set_user_nobuy(%1) set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0))

// plugin_init( )
register_messageget_user_msgid"StatusIcon" ), "Message_StatusIcon" );
// ...

public Message_StatusIconiMsgIDiMsgDestid )
{
    static 
szMessage]; 
    
get_msg_arg_string2szMessagecharsmaxszMessage ) ); 
        
    if ( 
equalszMessage"buyzone" ) && get_msg_arg_int) )
    {
        
fm_set_user_nobuyid );
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;


thanks, updated.

@ lucas
that is more diferent.
__________________
Reality is wrong, dreams are for real.
g_often is offline
Zezima14
Member
Join Date: Feb 2010
Old 03-26-2010 , 03:25   Re: Knife Mode v2.1.9
Reply With Quote #6

i like =)
Zezima14 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-26-2010 , 03:27   Re: Knife Mode v2.1.9
Reply With Quote #7

Quote:
Originally Posted by Zezima14 View Post
i like =)
thanks, but does not revive the post, because I think it will not be approved
__________________
Reality is wrong, dreams are for real.
g_often is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-02-2010 , 20:30   Re: Knife Mode v2.1.9
Reply With Quote #8

This is redundant and cannot be approved. There are other plugins which do the job equally or better.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 19:38.


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