Raised This Month: $ Target: $400
 0% 

Knfie damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ownedin3d
Senior Member
Join Date: Jul 2011
Old 11-12-2013 , 13:24   Knfie damage
Reply With Quote #1

Hello, i'm trying to make so that when you purhcase a super knife, it will deal 188 damage i've tried doing this

PHP Code:
 case 7:  
        { 
            if(
cs_get_user_money(id) < 16000)
            {
                
client_printidprint_chat,"%L",id"SHOP_ITEM_LOST");
                return 
PLUGIN_HANDLED;
            }
            else
            {            
         
           
cs_take_user_money(id16000)
           if( 
get_user_weapon(id) == CSW_KNIFE ) {
                 
SetHamParamFloat(0100.0)  
            
            
            }
                
client_printidprint_chat,"%L",id"SHOP_ITEMT_7");
            }
        } 
but it don't wrok, anyone here can help me ?

+KARMA
__________________
ownedin3d is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-12-2013 , 13:44   Re: Knfie damage
Reply With Quote #2

You kidding right?

SetHamParam* only work in Ham forwards in pre method
__________________
simanovich is offline
ownedin3d
Senior Member
Join Date: Jul 2011
Old 11-14-2013 , 15:39   Re: Knfie damage
Reply With Quote #3

What would i do now then?
__________________
ownedin3d is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-15-2013 , 00:38   Re: Knfie damage
Reply With Quote #4

Quote:
Originally Posted by ownedin3d View Post
What would i do now then?
Either you learn bases, either you stop asking for help in scripting/help forum and you aks for full plugins in suggestion/request forum.
I suggest you to go back to easy plugins and to learn more.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-14-2013 , 17:44   Re: Knfie damage
Reply With Quote #5

register takedamage forward with hamsandwich
check valid attacker
check user weapon is a knife
modify the param damage

Last edited by baneado; 11-14-2013 at 17:45.
baneado is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-15-2013 , 16:04   Re: Knfie damage
Reply With Quote #6

Quote:
Originally Posted by ownedin3d View Post
i can do alot of easy stuff with Pawn, but i just simply can't figure this out. Help me out with this one man..
again...
Quote:
Originally Posted by baneado View Post
register takedamage forward with hamsandwich
check valid attacker
check user weapon is a knife
modify the param damage
baneado is offline
ownedin3d
Senior Member
Join Date: Jul 2011
Old 11-15-2013 , 11:20   Re: Knfie damage
Reply With Quote #7

i can do alot of easy stuff with Pawn, but i just simply can't figure this out. Help me out with this one man..
__________________
ownedin3d is offline
Old 11-17-2013, 02:48
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: STOP
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 23:14.


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