Raised This Month: $ Target: $400
 0% 

Problem with Call Of Duty Class.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ViruSeQ
Junior Member
Join Date: Oct 2011
Old 07-12-2014 , 16:43   Problem with Call Of Duty Class.
Reply With Quote #1

Hi. I have a problem with my class "Loki".
In this class ddnt work 1/1 of a knife.
This is new cod by qtm peyote
I define
PHP Code:
#include <hamsandwich> 
#define DMG_BULLET (1<<1) 
register
PHP Code:
    RegisterHam(Ham_TakeDamage"player","TakeDamage"); 
And public

PHP Code:
public TakeDamage(thisidinflictoridattackerFloat:damagedamagebits){
if(!
is_user_alive(idattacker))
return 
HAM_IGNORED;
 
if(!
ma_klase[idattacker])
return 
HAM_IGNORED;
 
if(
get_user_weapon(attacker) == CSW_KNIFE){
cs_set_user_armor(id0CS_ARMOR_NONE);
SetHamParamFloat(4float(get_user_health(id) + 1));
return 
HAM_HANDLED;
}
return 
HAM_IGNORED;

Full code

http://wklej.org/id/1415822/

Any sugestion? :C
ViruSeQ 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 21:17.


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