Raised This Month: $51 Target: $400
 12% 

Knife model


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-06-2011 , 05:23   Re: Knife model
Reply With Quote #11

Attached Files
File Type: sma Get Plugin or Get Source (test.sma - 296 views - 6.5 KB)
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 03-06-2011 at 07:22.
drekes is offline
Send a message via MSN to drekes
talents
Member
Join Date: Feb 2011
Location: Romania
Old 03-06-2011 , 06:05   Re: Knife model
Reply With Quote #12

Plugin failed to compile! Please try contacting the author.Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/5/6/4/6/3/83272.attach(71) : error 033: array must be indexed (variable "g_bHasKnife")
/home/groups/alliedmodders/forums/files/5/6/4/6/3/83272.attach(10 : error 033: array must be indexed (variable "g_bHasKnife")

2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/83272.amx (compile failed).
__________________


talents is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-06-2011 , 07:22   Re: Knife model
Reply With Quote #13

Fixed, i can't believe i posted it without compiling
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
talents
Member
Join Date: Feb 2011
Location: Romania
Old 03-06-2011 , 11:15   Re: Knife model
Reply With Quote #14

When i choose SuperCutit(Knife) it doesn't apearr.......

Maybe because i have /knife plugin?
__________________


talents is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-06-2011 , 12:06   Re: Knife model
Reply With Quote #15

That depends on what the /knife plugin does.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
talents
Member
Join Date: Feb 2011
Location: Romania
Old 03-06-2011 , 12:34   Re: Knife model
Reply With Quote #16

ok....knife is with 5 knifes : more damage, gravity, speed.....
How can i make damage x3 for the knife and gravity?
Attached Files
File Type: sma Get Plugin or Get Source (knife_mod.sma - 270 views - 7.4 KB)
__________________



Last edited by talents; 03-06-2011 at 14:04.
talents is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-06-2011 , 15:05   Re: Knife model
Reply With Quote #17

Hook Ham_TakeDamage
if(g_bHasKnife[iAttacker])
SetHamParamFloat(4, flDamage * 3.0)
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
talents
Member
Join Date: Feb 2011
Location: Romania
Old 03-07-2011 , 13:09   Re: Knife model
Reply With Quote #18


i don;t know how to make it.....or for deagle damage x 3?

help me
Attached Files
File Type: sma Get Plugin or Get Source (BaseBuilder_Vip.sma - 299 views - 6.5 KB)
__________________


talents is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 03-07-2011 , 13:20   Re: Knife model
Reply With Quote #19

Quote:
Originally Posted by talents View Post
HTML Code:
set_user_health(id, get_user_health(id) + 2000);
               set_user_armor(id, get_user_armor(id) + 2000);
                     set_user_maxspeed(id, fast_speed);
                     HasSpeed = true;
                     set_pev(owner, pev_viewmodel2, "models/chucky_knife")

1.some errors... what i did wrong?
2.how can i put gravity at a knife?
PHP Code:
set_pev(ownerpev_viewmodel2"models/chucky_knife"
->

PHP Code:
set_pevidpev_viewmodel2"models/chucky_knife"
"owner" isn't an index in your code.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-07-2011 , 13:40   Re: Knife model
Reply With Quote #20

Quote:
Originally Posted by talents View Post

i don;t know how to make it.....or for deagle damage x 3?

help me
This is scripting help, it means that we give you giudelines and tips, and you try to code it yourself.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 00:58.


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