Raised This Month: $ Target: $400
 0% 

custom_weapon_damage help!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 05-18-2010 , 15:55   custom_weapon_damage help!!!
Reply With Quote #1

custom_weapon_dmg ( weapon, att, vic, damage, hitplace=0 )

What should i replace attack and victom with , lil help

Last edited by SaM.ThE.MaN; 05-18-2010 at 15:59.
SaM.ThE.MaN is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-18-2010 , 16:06   Re: custom_weapon_damage help!!!
Reply With Quote #2

The player index of the attacker you wish and then player index of the victim you wish...
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 05-18-2010 , 17:45   Re: custom_weapon_damage help!!!
Reply With Quote #3

oh thank you dear.
one more question ,what are their indexes.
thanxxxxxxxxxxxxxxxx alot wrecked you do help alot.really thank you
SaM.ThE.MaN is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-18-2010 , 19:24   Re: custom_weapon_damage help!!!
Reply With Quote #4

No problem.

The indexes are achieved many ways. It is more common that they are passed as function parameters, but it is done other ways, as well.

Ex:
Code:
#include <hamsandwich> #include <fakemeta> public client_connect( id ) {     // id is a player index passed through func parameters } public plugin_init() {     RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_ak47", "HamPrimAttack" ) } public HamPrimAttack( Ent ) {     new id = pev( Ent, pev_owner )     // id is a player index not passed in function params }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 03:53.


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