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

Subplugin Submission [ZP] Extra Item: Katana Samurai!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 09-18-2010 , 14:58   [ZP] Extra Item: Katana Samurai!
Reply With Quote #1

[ZP] Extra Item: Katana Samurai!

.- DESCRIPTION:

this extra item, a samurai katana is a sword to kill the enemy that, nothing remained but bones

.- features:

- by touching the enemy dies instantly, becoming only bones
- the death of the enemy, creates an effect of particles that surround the enemy
- Is My First Plugin

.- CVARS :

zp_katana_sounds

enable/disable sounds of katana

zp_katana_oneround

enable/disable
katana lasts 1 round

zp_katana_explobody

enable/disable to kill the enemy exploit in bones

.- Images:
http://img820.**************/i/katana1o.jpg/
http://img85.**************/i/katana2r.jpg/
http://img255.**************/i/katana3.jpg/

.-Credits :

meTaLiCroSS : for its "chainsaw" to guide me in some events
S34Qu4K3 : to solve the bug that had the skin of the katana
Mr.Death : how to create the effects and use the "Temp Entity"
DJ HD : to optimize and organize the plugin

------------------------------------------------------------------------------
this is my first plugin, is tested, if they find bugs, let me know
sorry for my bad English, I use translator

Attached Files
File Type: zip zp_Extra_katana.zip (483.3 KB, 5755 views)
File Type: sma Get Plugin or Get Source (zp_extra_katana.sma - 6478 views - 8.9 KB)

Last edited by xLeoNNN; 09-20-2010 at 19:41.
xLeoNNN is offline
Send a message via MSN to xLeoNNN
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-18-2010 , 16:24   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #2

Code:
public plugin_init() { register_plugin("[ZP] Extra Item: Katana Samurai!", "1.0", "x[L]eoNNN") g_iBuy = zp_register_extra_item("Katana Samurai!", 10, ZP_TEAM_HUMAN) register_event("CurWeapon", "Event_CurWeapon", "be","1=1") register_forward(FM_SetModel, "fw_SetModel") register_event("HLTV", "event_round_start", "a", "1=0", "2=0") RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage") RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1) register_forward(FM_EmitSound, "fw_EmitSound") RegisterHam(Ham_Killed, "player", "fw_PlayerKilled") cvar_katanasounds = register_cvar("zp_katana_sounds", "1") cvar_oneround = register_cvar("zp_katana_oneround", "0") cvar_explobody = register_cvar("zp_katana_explobody", "1") register_clcmd("drop", "clcmd_drop") register_touch("cs_katana", "player", "fw_katana_Touch") g_mgcur = get_user_msgid("CurWeapon") } public plugin_precache() { precache_model(V_KATANA)      precache_model(P_KATANA) precache_model(W_KATANA) for(new i = 0; i < sizeof katana_sounds; i++) precache_sound(katana_sounds[i]) }
Plz indent ur code
Btw the idea sounds good
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 09-18-2010 , 17:26   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #3

Hey, don't upload amxx file, only source file.
__________________
albert123 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 09-18-2010 , 17:29   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #4

because I can not raise the AMXX?
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-18-2010 , 17:52   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #5

If you attach the sma, the forum automaticaly generates a ling to the amx file (web compiler) Good plug ;)
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 09-18-2010 , 17:57   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #6

thanks S34Qu4K3.but I can do to make the sma in "attachment files"?
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-18-2010 , 18:00   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #7

Edit the post, goto advanced, go dow and yo will see a button who says Mange attachements
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 09-18-2010 , 18:10   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #8

thanks,one more day in my next post them extra item
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 09-18-2010 , 19:09   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #9

abdul, his indentation is bad but because he used AMXX Studio when
new something[][]=
{
//something
}

and u use the auto indent, it makes the plugin weird indentation because it is not in a function. That's the bad thing about AMXX Studio. Second thing is it doesn't have the function to Find & Replace.

@ Plugin author
It's exploded not exploit(Exploit definition)
EDIT: Isn't this plugin from chainsaw? I saw katana_mins & katana_maxs. But anyway, try not to use engine & fakemeta together. I would use fakemeta for ZP plugin cuz main core of ZP uses FM only.

Last edited by Excalibur.007; 09-18-2010 at 19:12.
Excalibur.007 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 09-18-2010 , 19:44   Re: [ZP] Extra Item: Katana Samurai!
Reply With Quote #10

mm, about the chainsaw, I gave credit to metallicross because I could not get how to vote / pick up the gun, so I gave credits
but testing the plugin and it worked to perfection
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
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 12:50.


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