Raised This Month: $ Target: $400
 0% 

#define problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
raydan
Senior Member
Join Date: Aug 2006
Old 12-07-2007 , 02:07   #define problem
Reply With Quote #1

Code:
#define amerknife           1
#define bar                 2
#define weapon_bazooka      3
#define c96                 4
#define colt                5
#define frag_us             6
#define frag_ger            7
#define garand              8
#define riflegren_us        9
#define k98                 10
#define riflegren_ger       11
#define k98_scoped          12
#define m1carbine           13
#define mg42                14
#define mp40                15
#define mp44                16
#define p38                 17
#define pschreck            18
#define spade               19
#define spring              20
#define thompson            21
new Float:gWeaponKnockBack[MAX_WEAPON];
gWeaponKnockBack[mg42] = 1.0; // and more
 
public Action:ev_player_hurt(Handle:event,const String:name[],bool:dontBroadcast)
{
GetEventString(event,"weapon",weapon,65);
PrintToServer("%f",gWeaponKnockBack[weapon]); // how to get it?
}
raydan 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 20:18.


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