Raised This Month: $ Target: $400
 0% 

custom_weapon_damage help!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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