Raised This Month: $ Target: $400
 0% 

code to .amxx


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mazi
Junior Member
Join Date: Dec 2007
Old 12-05-2007 , 15:19   code to .amxx
Reply With Quote #1

hi i got this code for slash only but how do i make it an .amxx file?
Quote:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Force Attack2"
#define VERSION "1.0"
#define AUTHOR "Alka"

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_PlayerPreThink,"Fwd_Playe rPreThink");

}

public Fwd_PlayerPreThink(id)
{
static temp, weapon;
weapon = get_user_weapon(id, temp, temp);

if(weapon == CSW_KNIFE && get_user_team(id) == 2)
{
static button;
button = pev(id, pev_button);

if(button & IN_ATTACK)
{
button = (button & ~IN_ATTACK ) | IN_ATTACK2;
set_pev(id, pev_button, button);
}
}
}

-Mazi
mazi is offline
 



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 11:11.


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