Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 13:31   [ZP] Extra Item : zSpawn || Updated v1.4.1 [26/12/2009]
Reply With Quote #1

[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!
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.

Last edited by Fry!; 12-26-2009 at 05:37. Reason: New release, v1.4.1
Fry! is offline
koyumu
Senior Member
Join Date: Jul 2008
Old 10-19-2008 , 14:48   Re: [ZP] Extra Item : Respawn
Reply With Quote #2

good, thanks

can you make this plugin working for CT AND Zombie ?

possible ?

thanks
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 15:02   Re: [ZP] Extra Item : Respawn
Reply With Quote #3

What? I already said
Quote:
ability for Humans.
Maybe in next release I will add this for zombies too.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 10-19-2008 , 16:42   Re: [ZP] Extra Item : Respawn
Reply With Quote #4

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
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 16:50   Re: [ZP] Extra Item : Respawn
Reply With Quote #5

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.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 10-19-2008 , 16:58   Re: [ZP] Extra Item : Respawn
Reply With Quote #6

Try this -->
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_respawn.sma - 2820 views - 1.0 KB)
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Old 10-19-2008, 17:00
Fry!
This message has been deleted by Fry!. Reason: I see.
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-19-2008 , 17:22   Re: [ZP] Extra Item : Respawn
Reply With Quote #7

Added Antibots version anyway I later gonna remove mine.

Updated
to v1.1 .
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Bbaby <3
Member
Join Date: Oct 2008
Old 10-20-2008 , 00:57   Re: [ZP] Extra Item : Respawn
Reply With Quote #8

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
Bbaby <3 is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-20-2008 , 15:00   Re: [ZP] Extra Item : Respawn
Reply With Quote #9

Umm, darn, in this plugin I will look into it probably wednesday.

(sorry for this delay because I was all day in school. )
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Bbaby <3
Member
Join Date: Oct 2008
Old 10-21-2008 , 01:05   Re: [ZP] Extra Item : Respawn
Reply With Quote #10

Ok
Bbaby <3 is offline
Reply


Thread Tools
Display Modes

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 03:44.


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