AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Extra Item : zSpawn || Updated v1.4.1 [26/12/2009] (https://forums.alliedmods.net/showthread.php?t=79251)

Fry! 10-19-2008 13:31

[ZP] Extra Item : zSpawn || Updated v1.4.1 [26/12/2009]
 
[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
:

Quote:

  • 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 :

Code:

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!

koyumu 10-19-2008 14:48

Re: [ZP] Extra Item : Respawn
 
good, thanks

can you make this plugin working for CT AND Zombie ?

possible ?

thanks

Fry! 10-19-2008 15:02

Re: [ZP] Extra Item : Respawn
 
What? I already said
Quote:

ability for Humans.
Maybe in next release I will add this for zombies too.

G-Dog 10-19-2008 16:42

Re: [ZP] Extra Item : Respawn
 
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
Code:

        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 with
Code:

g_itemid_respawn = zp_register_extra_item(g_item_name,RESPAWN_COST, ZP_TEAM_HUMAN)
and change ZP_TEAM_HUMAN to 0

Fry! 10-19-2008 16:50

Re: [ZP] Extra Item : Respawn
 
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
Code:

   
    // 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

Re: [ZP] Extra Item : Respawn
 
1 Attachment(s)
Try this -->

Fry! 10-19-2008 17:22

Re: [ZP] Extra Item : Respawn
 
Added Antibots version anyway I later gonna remove mine.

Updated
to v1.1 .

Bbaby <3 10-20-2008 00:57

Re: [ZP] Extra Item : Respawn
 
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

Re: [ZP] Extra Item : Respawn
 
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

Re: [ZP] Extra Item : Respawn
 
Ok


All times are GMT -4. The time now is 17:05.

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