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

Deagle Nail Launcher [UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-24-2009 , 07:53   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #41

PHP Code:
if(get_pcvar_num(g_toggle_enable) == 0)
        return 
PLUGIN_HANDLED
You could use '!get_pcvar_num'
In 'public launch_nail(id)' you don't have to check if the cvar is enabled, because you already did that in 'public check_nails(id)'

PHP Code:
if(!get_cvar_num("mp_friendlyfire"))
                {    
                    if(
get_user_team(id) != get_user_team(i))
                    {    
                        if(
hp damage)
                        {
                            
nail_take_damage(i,floatround(damage),Origin,DMG_BLAST);
                        }
                        else
                        {
                            
nail_kill(id,i,"** Deagle-Nail **",0);
                        }
                    }
                }
                else
                {
                    if(
hp damage)
                    {
                        
nail_take_damage(i,floatround(damage),Origin,DMG_BLAST);
                    }
                    else
                    {
                        
nail_kill(id,i,"** Deagle-Nail **",0);
                    }
                    
                } 
You're doing the exact thing in the if statement and else.

set_msg_block(gDmsgID , BLOCK_SET); - use BLOCK_ONCE
__________________

anakin_cstrike is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 01-24-2009 , 08:11   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #42

ups
i will update

EDIT: done
__________________

Last edited by tuty; 01-24-2009 at 08:37.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-05-2009 , 22:17   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #43

There are a few mistakes and optimizations that can be made, however it is acceptable.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Mlk27
Veteran Member
Join Date: May 2008
Old 02-16-2009 , 21:06   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #44

tuty just a thought..why dont you make the nail explodes when it hits other entities in its way after you shoot it? that would be more realistic
Mlk27 is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 05-29-2009 , 10:16   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #45

What should i modify in code so it will be applied to some other gun, for example glock ?
Jack86 is offline
orange
Senior Member
Join Date: Dec 2005
Old 05-29-2009 , 14:16   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #46

Funky Plugin , Tested works good.. Tho i wasnt sure if i really needed it but GoodWork
__________________
orange is offline
Autocrat
New Member
Join Date: Sep 2009
Old 09-12-2009 , 11:57   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #47

i have installed this plugin and it works but then no damage is inflicted!!
Autocrat is offline
TalRasha
Junior Member
Join Date: Mar 2008
Location: Somewhere
Old 10-17-2009 , 20:34   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #48

I have a suggestion :
A cvar to change the amount of nails you have (like "nail_amount 3" - will give only 3 nails , "nail_amount 0" - will give infinite amount of nails )
TalRasha is offline
Send a message via Skype™ to TalRasha
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 04-09-2010 , 04:24   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #49

Crash the server due plugin
Please fix bug

[IMG]http://img210.**************/img210/7397/errorsc.jpg[/IMG]
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 04-10-2010 , 08:06   Re: Deagle Nail Launcher [UPDATED]
Reply With Quote #50

Quote:
Originally Posted by bogdyuttzu View Post
Crash the server due plugin
Please fix bug

[IMG]http://img210.**************/img210/7397/errorsc.jpg[/IMG]
Someone please fix
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
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 07:26.


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