Raised This Month: $ Target: $400
 0% 

Problem with Call Of Duty Class.


Post New Thread Reply   
 
Thread Tools Display Modes
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-13-2014 , 06:11   Re: Problem with Call Of Duty Class.
Reply With Quote #2

Explain better what's the problem.....
HamletEagle is offline
ViruSeQ
Junior Member
Join Date: Oct 2011
Old 07-13-2014 , 07:19   Re: Problem with Call Of Duty Class.
Reply With Quote #3

Quote:
In this class ddnt work 1/1 of a knife.
Well. I attack IN ATTACK(left mouse) and IN ATTACK 2(right mouse). Him still live, i ask why? This code give me 100% to kill him.
ViruSeQ 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 21:17.


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