Raised This Month: $ Target: $400
 0% 

Switch on/off by mouse right click


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-14-2009 , 10:35   Re: Switch on/off by mouse right click
Reply With Quote #3

Quote:
Originally Posted by hleV View Post
Not tested.
Code:
#include <amxmodx> #include <fakemeta> new bool:Switch[33];

public plugin_init() register_forward(FM_CmdStart, "CmdStart");

public CmdStart(Client, Handle) { static Buttons, OldButtons;
Buttons = get_uc(Handle, UC_Buttons);
//Buttons = pev(Client, pev_button); OldButtons = pev(Client, pev_oldbuttons);

if ((Buttons & IN_ATTACK) && !(OldButtons & IN_ATTACK)) Switch[Client] = !Switch[Client];
}

isnt right mouse attack2 & not ATTACK??
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 02:27.


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