AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot) (https://forums.alliedmods.net/showthread.php?t=209346)

wizz 02-24-2013 11:50

NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
 
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)
}

Kard1nal 02-24-2013 11:55

Re: NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
 
Code:
public Ham_UseButton( iEnt, iAttacker, Float:fDamage, Float:vDirection[3], TraceHandle, iDamageBits ) if(get_user_team(iAttacker) == 2)  dllfunc(DLLFunc_Use, iEnt, iAttacker)

wizz 02-24-2013 12:02

Re: NEED HELP WITH SHOOT BUTTONS PLUGIN (only ct can shoot)
 
thank you so much :)))


All times are GMT -4. The time now is 21:46.

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