AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item: Katana Samurai! (https://forums.alliedmods.net/showthread.php?t=138486)

xLeoNNN 09-18-2010 14:58

[ZP] Extra Item: Katana Samurai!
 
2 Attachment(s)
[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


abdul-rehman 09-18-2010 16:24

Re: [ZP] Extra Item: Katana Samurai!
 
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

albert123 09-18-2010 17:26

Re: [ZP] Extra Item: Katana Samurai!
 
Hey, don't upload amxx file, only source file.

xLeoNNN 09-18-2010 17:29

Re: [ZP] Extra Item: Katana Samurai!
 
because I can not raise the AMXX?

S34Qu4K3 09-18-2010 17:52

Re: [ZP] Extra Item: Katana Samurai!
 
If you attach the sma, the forum automaticaly generates a ling to the amx file (web compiler) Good plug ;)

xLeoNNN 09-18-2010 17:57

Re: [ZP] Extra Item: Katana Samurai!
 
thanks S34Qu4K3.but I can do to make the sma in "attachment files"?

S34Qu4K3 09-18-2010 18:00

Re: [ZP] Extra Item: Katana Samurai!
 
Edit the post, goto advanced, go dow and yo will see a button who says Mange attachements

xLeoNNN 09-18-2010 18:10

Re: [ZP] Extra Item: Katana Samurai!
 
thanks,one more day in my next post them extra item

Excalibur.007 09-18-2010 19:09

Re: [ZP] Extra Item: Katana Samurai!
 
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.

xLeoNNN 09-18-2010 19:44

Re: [ZP] Extra Item: Katana Samurai!
 
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


All times are GMT -4. The time now is 13:09.

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