PDA

View Full Version : [ZP] Extra Item : zSpawn || Updated v1.4.1 [26/12/2009]


Fry!
10-19-2008, 13:31
[ZP] Extra Item : zSpawn
(For Humans and Zombies)

by Fry!


Description :

This plugin allows you to respawn even if you are killed by zombies or worldspawn. This ability will cost to you some ammo packs. This plugin also has feature for delayed players, when you are joined middle in the game and if you want to play just say !delayed. After respawn you will have temp. invisible (few seconds) that will give you to hide before everyone can see you.

Cvars :

zp_zspawn_cost "8" - How much it gonna cost.
zp_zspawn_time "2.0" - How long it gonna take to respawn in game.
zp_zspawn_protection_time "7.0" - How long protection will lenght when you respawn.
zp_delay_zspawn_time "15.0" - How long it gonna take to respawn (only for delayed players).
.

Command :
To buy it :
- say !zspawn or say_team !zspawn

If you are delayed :
- say !delayed or say_team !delayed

Credits :


Antibots - For helping
G-Dog - I borrowed some code from his coding style. :)
Dores - Helped with Late Join function
Changelog :

19/10/2008 - v1.0 - First release
20/10/2008 - v1.1 - removed fun module added hamsandwich module ( Thanks to Antibots ) changed some lines.
23/10/2008 - v1.2 - rewrited plugin from crapy to new one ;) and added some cvars
24/10/2008 - v1.2.1 - changed command from /respawn to /zspawn and plugin name.
25/10/2008 - v1.2.5 - fixed respawn not working, fixed some cvars, fixed plugin name typo, optimized code.
25/10/2008 - v1.2.7 - removed one toggle cvar and unnecessary line that zombies can't buy this ability.
19/11/2008 - v1.3 - fixed respawn not working because of toggle cvar (lol) so I removed it, fixed forgaten cvar due you could waste ammo packs, now zombies can respawn too.
09/01/2009 - v1.4 - Fixed some previous bugs (could respawn always), added new feature Late Join respawn
25/08/2009 - v1.4.1 -

Fixed : Possible respawn even if you are alive, and could waste ammo packs.
Changed : There is no need to check if player was zombie or not buying zspawn, optimized code.
Added : Fakemeta, Temp. Invisible.


Plugin is available to download here! (http://forums.supercentral.net/index.php?showtopic=225)

koyumu
10-19-2008, 14:48
good, thanks

can you make this plugin working for CT AND Zombie ?

possible ?

thanks

Fry!
10-19-2008, 15:02
What? I already said ability for Humans. Maybe in next release I will add this for zombies too.

G-Dog
10-19-2008, 16:42
am I the only who doesn't believe this will do anything? How does calling a non existent task make someone revive? You would be better off using something like new username[33];
get_user_name(id, username, 32);
server_cmd("zp_respawn %s", username); so zombie plague will handle the revive for you, and no reason at all for the g_canRespawn global.

@koyumu: if you want to make something work for both teams open the script find the line withg_itemid_respawn = zp_register_extra_item(g_item_name,RESPAWN_CO ST, ZP_TEAM_HUMAN)and change ZP_TEAM_HUMAN to 0

Fry!
10-19-2008, 16:50
I really don't know cuz I have checked zombie plague.sma Mercylezz set only that what I've add in this .sma
Example from his .sma

// Respawn player if he dies by worldspawn kill or something
set_task(5.0, "respawn_player", id+TASK_SPAWN)

And that's it nothing else... Correct me if I'm wrong.

AntiBots
10-19-2008, 16:58
Try this -->

Fry!
10-19-2008, 17:22
Added Antibots version anyway I later gonna remove mine.

Updated to v1.1 .

Bbaby <3
10-20-2008, 00:57
Hey The_Thing,how do you use the revive?...cause if you are dead you cant buy extra items and if you are alive and you bought it,it will just say [ZP]Watch Out You're Visible.,and when you die there isnt any effect also

Fry!
10-20-2008, 15:00
Umm, darn, in this plugin I will look into it probably wednesday.

(sorry for this delay because I was all day in school. :( )

Bbaby <3
10-21-2008, 01:05
Ok

Fry!
10-22-2008, 12:47
Hey The_Thing,how do you use the revive?...cause if you are dead you cant buy extra items and if you are alive and you bought it,it will just say [ZP]Watch Out You're Visible.,and when you die there isnt any effect also

Today I've tested this plugin and yeah appears this message it's somehow are merged with invisible extra item plugin, if You use that plugin of course. Ok I will need 1 or 2 days then I start to fix it...

G-Dog
10-22-2008, 15:41
here's the version I coded for our server, for anyone that wants it

ifx
10-22-2008, 15:51
here's the version I coded for our server, for anyone that wants it
hey, thanks!

Fry!
10-22-2008, 16:35
Darn I was continue this plugin and used same way to fix it... :|

Fry!
10-22-2008, 18:00
Ok, I've updated to v1.2 see first post. :)

MeRcyLeZZ
10-23-2008, 22:10
Yeah, you should make this a command (like "say /zspawn") since players are unable to buy extra items when dead.

Fry!
10-24-2008, 00:30
ok. :)

Fry!
10-24-2008, 13:04
Yeah, you should make this a command (like "say /zspawn") since players are unable to buy extra items when dead.

lol, I already had done this :D , probably You didn't noticed. :) Anyway small updated to v1.2.1 .

MeRcyLeZZ
10-24-2008, 21:59
Oh yeah sorry I'm just blind...

Bbaby <3
10-25-2008, 02:40
When you type /zspawn nothing happens and is the name of the .amxx and .sma files wrong?

Fry!
10-25-2008, 02:51
Really nothing? :|

Bbaby <3
10-25-2008, 02:53
Ya nothing happens..and the .amxx and .sma files the name is zp_extra_zpsawn.amxx/.sma.

Fry!
10-25-2008, 02:57
That's not a problem if it's not correctly named, You can change it to what You want and it will work... Anyway I working now on this...

Bbaby <3
10-25-2008, 02:59
OK

Fry!
10-25-2008, 03:02
um, You are sure that You didn't disabled this extra item in cvars?
example :

zp_respawn <1|0> // Default : 1
maybe You set to 0 ?

Bbaby <3
10-25-2008, 03:16
There is no such cvar as zp_respawn...

Fry!
10-25-2008, 03:34
Ok, my bad I found some my mistakes, I'm sorry. Updated to v1.2.5 .

G-Dog
10-25-2008, 06:27
no credits for me eh? Anyways if ( get_pcvar_num(g_respawn_toggle) == 0 )
{
client_print(id, print_chat,"[ZP] Respawn ability are disabled")
return PLUGIN_HANDLED
}

if ( get_pcvar_num(g_respawn_toggle) == 1 )
{
client_print(0, print_chat, "[ZP] Respawn ability are enabled")
return PLUGIN_CONTINUE
} hope you understand that the purchase command will never work due to the fact that your exiting out of the function no matter if the zp_respawn cvar is equivalent to 0 or 1.

Fry!
10-25-2008, 06:35
okay, I will give You a credit because I forgat to add You...
umm, so cvar is useless? Then how can I do it if someone want to disable or enable it? Please show example please. :)

Fry!
10-25-2008, 09:21
no credits for me eh? Anyways if ( get_pcvar_num(g_respawn_toggle) == 0 )
{
client_print(id, print_chat,"[ZP] Respawn ability are disabled")
return PLUGIN_HANDLED
}

if ( get_pcvar_num(g_respawn_toggle) == 1 )
{
client_print(0, print_chat, "[ZP] Respawn ability are enabled")
return PLUGIN_CONTINUE
} hope you understand that the purchase command will never work due to the fact that your exiting out of the function no matter if the zp_respawn cvar is equivalent to 0 or 1.


Anyway I got it what You meant. Updated to v1.2.7 . I did quick Test and works. :)

Fry!
11-02-2008, 14:04
Forgat to meantion if you use this extra item, you can respawn even if NEMESIS mode are running. :)

aaarnas
11-18-2008, 15:47
When I type /zspawn in chat nothing happens.

Fry!
11-18-2008, 16:02
Do you have enough ammo packs to respawn? –_–

aaarnas
11-19-2008, 11:34
Yes I have. Seem everything working if you use it from extra items menu (sure you can't respawn), But if I write /zspawn nothing happens. Eaven info tips in chat don't appear.

Fry!
11-19-2008, 11:36
Ops, didn't saw this my self, thanks I will fix it.

Edit : Wait you can't respawn at all? It's working for me fine...

Mazzerin
11-19-2008, 11:56
Yup, I play in his server.It doesn't work.Nothing happens when I type /zspawn ... Please fix it..

Fry!
11-19-2008, 12:06
Before I released this version I tested it and it was successful test so I released and don't know guys why it's not working for you, ok I will test it my self again then probably will release new update.

aaarnas
11-19-2008, 13:26
Ok, i'll try it again, maybe it would work.

Fry!
11-19-2008, 13:31
yea It's not working anymore. Strange because when I used v4.07 it was working fine now with v4.1 it's not working anymore... :|

Fry!
11-19-2008, 15:20
Fresh release to v1.3, for more info look into main post.

aaarnas
11-20-2008, 13:31
It working!! :D Thank you very much :)

Fry!
11-20-2008, 13:53
It working!! :D Thank you very much :)

Of course it's working because I made screenshot lol.

Mazzerin
11-23-2008, 10:45
Thanks for this great plugin.

drumzplaya13
11-23-2008, 16:56
i just wish there was a zspawn which didnt cost any money, and it did it automatically. i mean for people who just joined the server though and they are dead, i just want them to respawn automatically..

aaarnas
11-24-2008, 04:25
i just wish there was a zspawn which didnt cost any money, and it did it automatically. i mean for people who just joined the server though and they are dead, i just want them to respawn automatically..

So use the death mach mode in zombieplague.cfg. lol.

Fry!
01-15-2009, 11:33
New release, for more info check main post! :)

aaarnas
09-04-2009, 14:54
One thing with latejoin. If player recconect he can use latejoin. So he recconecting and comming back to game. It would be good to block respawn on recconect.

Fry!
09-14-2009, 12:33
Thanks for idea.

Excalibur.007
09-15-2009, 08:05
A bug. When you die you type /latejoin after 15 sec you will respawn...

Fry!
12-26-2009, 05:38
New fixed release v1.4.1, for more info check main post!

ceacea
01-30-2010, 04:41
Can you make that only zombies can use /zspawn ? Thank You!

BeasT
04-10-2010, 14:42
Broken dl link.

gulverene
11-15-2010, 17:27
Broken dl link.

Yes

silver-
10-27-2011, 19:25
working link:
http://projectyami.com/supercentral//index.php?showtopic=225

can someone disable the delayed feature for me? :wink:

JoKeR LauGh
10-27-2011, 20:11
working link:
http://projectyami.com/supercentral//index.php?showtopic=225

can someone disable the delayed feature for me? :wink:
I removed it . :mrgreen:

silver-
10-28-2011, 17:39
I removed it . :mrgreen:

Thanks, will test :)

EDIT: Thanks, works good! :)

wicho
04-30-2012, 20:12
Sorry to revive the post but it works for version 5.0?

jc980
04-30-2012, 22:29
you can check the list of plugins that WORKS on zp50 by H.RED.ZONE

18chmAn
12-07-2012, 21:50
Give a new link
please<3

JoKeR LauGh
12-13-2012, 19:43
Here.

Inf3ct
07-13-2013, 18:29
Hy evrybody this is my first post.I am giving you an edited version of this plugin, with the comand /respawn and no delay :):twisted::arrow:

Catastrophe
07-14-2013, 02:48
Post what u changed from original code of Fry!

And "Edited by `Inf3ct" is not needed......... cuz the entire code is by Fry! ....

Inf3ct
07-14-2013, 13:52
yeah, edited by inf3ct is needed because you didnt f:down::down:cking spent your time to do that. :down: correct me somewhone if i say wrong :))

Catastrophe
07-15-2013, 03:56
Bitch please, dont wanna flame you but, YOU SHOULD KNOW WHEN YOU FUCKING CREATE SOMETHING REALLY UNNECESSARY AND FOR YOURSELF DONT MAKE A FUCKING TOPIC FOR IT, ITS FUCKING NOT NEEDED ...

KEEP YOU CRAPPY IDEAS WITH YOU UNLESS SOMEONE REQUESTS IT ...... OR IT'S GOOD ENOUGH.

Hope this helps you :)

LeBadit
04-15-2014, 07:59
Link doesnt work.

LeBadit
06-26-2014, 10:57
Fixed.