Raised This Month: $ Target: $400
 0% 

NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizz
Member
Join Date: Mar 2010
Old 02-24-2013 , 11:50   NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
Reply With Quote #1

Hello iŽam problem with shoot buttons plugin.. i have jailbreak server and i wanna to only CT-s can shoot the button and then cells open, not terrorist !
Only if CT-s shoot buttons the cells open..
Thanks..
Sorry my bad english im from Estonian
_____________________________________________ _________________________________
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "Use Buttons"
#define VERSION "0.1"
#define AUTHOR "b0R3sT"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TraceAttack, "func_button", "Ham_UseButton")
// Add your code here...
}

public Ham_UseButton( iEnt, iAttacker, Float:fDamage, Float:vDirection[3], TraceHandle, iDamageBits ) {
dllfunc(DLLFunc_Use, iEnt, iAttacker)
}
wizz is offline
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 02-24-2013 , 11:55   Re: NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
Reply With Quote #2

Code:
public Ham_UseButton( iEnt, iAttacker, Float:fDamage, Float:vDirection[3], TraceHandle, iDamageBits ) if(get_user_team(iAttacker) == 2)  dllfunc(DLLFunc_Use, iEnt, iAttacker)
__________________
Sorry for my English, I'm Russian.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
wizz
Member
Join Date: Mar 2010
Old 02-24-2013 , 12:02   Re: NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
Reply With Quote #3

thank you so much ))
wizz 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 21:46.


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