Raised This Month: $ Target: $400
 0% 

[REQ] Strip knife / set knife


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-08-2014 , 18:18   Re: [REQ] Strip knife / set knife
Reply With Quote #1

Is this what your looking for:
Code:
#include <amxmodx> #include <fakemeta> new const VERSION[]     =   "0.0.1"; const m_iPlayerTeam     =   114; const m_iJoiningState       =   121; const m_iMenu           =   205; const MENU_CHOOSECLASS      =   3; const STATE_CHOOSECLASS     =   4; new bool:g_bNoKnife[ 33 ], g_iMenu; public plugin_init() {     register_plugin( "Knife Model Option", VERSION, "hornet" );         BuildMenu();         register_clcmd( "menuselect", "ClientCommand_JoinClass" );     register_clcmd( "joinclass", "ClientCommand_JoinClass" );         register_event( "CurWeapon", "Event_CurWeapon", "be", "1=1", "2=29" ); } BuildMenu() {     g_iMenu = menu_create( "\yShow the knife model?", "MenuHandle_Knife" );         menu_additem( g_iMenu, "Yes" );     menu_additem( g_iMenu, "No" );         menu_setprop( g_iMenu, MPROP_EXIT, MEXIT_NEVER ); } public MenuHandle_Knife( id, iMenu, iItem ) {     if( iItem != 0 )         g_bNoKnife[ id ] = true;     else    g_bNoKnife[ id ] = false; } public ClientCommand_JoinClass( id ) {     if( get_pdata_int( id, m_iMenu ) == MENU_CHOOSECLASS && get_pdata_int( id, m_iJoiningState ) == STATE_CHOOSECLASS && get_pdata_int( id, m_iPlayerTeam ) == 1 )         menu_display( id, g_iMenu ); } public Event_CurWeapon( id ) {     if( g_bNoKnife[ id ] )         set_pev( id, pev_viewmodel2, "" ); }
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 02-08-2014 at 18:19.
hornet 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 16:49.


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