Raised This Month: $30 Target: $400
 7% 

Switch 2 Spectator


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-07-2007 , 12:31   Switch 2 Spectator
Reply With Quote #1

Switch 2 Spectatorv0.3


~ NO DEATHMATCH SUPPORTED ~

Author: regalis

Version: 0.2

Description:
Quote:
Give your Players the ability to switch into the spectator team without getting a death in scoreboard and without loosing their weapons/armour.
A player can only switch if he isn't wounded already.
Features:
-Get your ammo back
-Get your amour back
-Get your weapons back
-Get your choosen model back
-Switch between your team and spectator


Command:

Quote:
just say /spec in chat to switch between your team and spectator


Changelog:
Quote:
v0.1:
@ initial release

v0.2:
! Fixed some bugs
+ Added function to get the Armor back

v0.3:
!Fixed a bug where sometime the Vars wasn't reseted correctly
Known Bugs:
Quote:
- Sometimes when you switch back in you old team and get your weapons back
your clipammo will be 0 and you have to reload first..

Modules needed:

Code:
fakemeta
cstrike
fun


Last Views: 38
Attached Files
File Type: sma Get Plugin or Get Source (Switch2Spectator.sma - 2386 views - 5.9 KB)
__________________

Last edited by regalis; 06-15-2007 at 07:27. Reason: Uploaded new Version 0.3 - found bug with weapon ammo...
regalis is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 06-07-2007 , 12:59   Re: Switch 2 Spectator
Reply With Quote #2

thanks man
neogeo is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 06-07-2007 , 13:27   Re: Switch 2 Spectator
Reply With Quote #3

Looks great Regalis - I like the idea of them getting their weapons back. I was writing a plugin to restart the server, save weapons/money to file, then bring server back up and restore everything, leaving the user untouched. Maybe even set score/deaths.

I find it strange that you do this:
Code:
#define PLUGIN "Switch2Spec"
#define VERSION "0.1"
register_cvar(PLUGIN, VERSION, FCVAR_SERVER);
because you are making a CVAR which is visible through queries that is named "Switch2Spec" and the same version number. I would've personally rather a new CVAR like "switch_spec" or "sts" - just not the same as the name. But hey, your plugin, your call. Good job!

Slmclarengt
__________________
But we donít beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
kil0
Member
Join Date: Feb 2007
Location: 63.208.142.14:27015
Old 06-07-2007 , 13:28   Re: Switch 2 Spectator
Reply With Quote #4

hey i believe there are some plugins like this, like /brb but good job
kil0 is offline
Send a message via AIM to kil0
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-07-2007 , 13:37   Re: Switch 2 Spectator
Reply With Quote #5

Quote:
Originally Posted by slmclarengt View Post
Looks great Regalis - I like the idea of them getting their weapons back. I was writing a plugin to restart the server, save weapons/money to file, then bring server back up and restore everything, leaving the user untouched. Maybe even set score/deaths.

I find it strange that you do this:
Code:
#define PLUGIN "Switch2Spec"
#define VERSION "0.1"
register_cvar(PLUGIN, VERSION, FCVAR_SERVER);
because you are making a CVAR which is visible through queries that is named "Switch2Spec" and the same version number. I would've personally rather a new CVAR like "switch_spec" or "sts" - just not the same as the name. But hey, your plugin, your call. Good job!

Slmclarengt
This is only the Version-CVAR which can be used to find servers with this plugin running ;)
If you want to you can change the name to your liking


Quote:
Originally Posted by kil0 View Post
hey i believe there are some plugins like this, like /brb but good job

I found only plugins which change your name to [AFK]-name
Thats bad because you get killed alot *lol*


Im happy you like it
greetz regalis
__________________
regalis is offline
ExKiLL
Senior Member
Join Date: Nov 2005
Location: Germany
Old 06-07-2007 , 13:59   Re: Switch 2 Spectator
Reply With Quote #6

nice rega + karma
__________________
193.192.59.43:27015 ----- italy ( 20 )
85.25.150.62:27015 ------ sHclachthaus ( 14 )
85.25.150.62:27055 ------ DeathMatch ( 20 )
85.25.150.62:27035 ------ Kreedz Hangout ( 18 )
85.214.100.160:27015 ---- 24/7 full house | **GG + DM** ( 32 )
93.190.64.150:27015 ----- Superhero (12)
ExKiLL is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-07-2007 , 15:55   Re: Switch 2 Spectator
Reply With Quote #7

Atleast...now the problem with ammo/bpammo is fixed & looks very *w00t* Gj
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 06-07-2007 , 18:46   Re: Switch 2 Spectator
Reply With Quote #8

What's to keep people from abusing this and going spec when they are about to die? Maybe you should add something that you can't go /spec within like 5 seconds of taking damage so people can't cheat death, keep their score, and get their guns back.
kmal2t is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-07-2007 , 18:58   Re: Switch 2 Spectator
Reply With Quote #9

hmm..thats a good point!
Will work on that after the Tv show im just looking*g*
Thanks for pointing this out! ;)

greetz regalis
__________________
regalis is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-07-2007 , 19:09   Re: Switch 2 Spectator
Reply With Quote #10

hehe... i just made this plugin for my server... um... yes please make the no spec after being damaged.

also, because you are never removing tasks or anything, there is no point in using different task numbers and then sending the id through the params. instead just use the id as the task id.

also, perhaps a define for whether or not to change the player's skin to vip when spectating.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Old 06-07-2007, 20:27
regalis
This message has been deleted by regalis. Reason: new version...
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 06:13.


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