PDA

View Full Version : Protect The VIP ( 16/06/2013 )


Blizzard_87
06-15-2013, 02:21
Protect The VIP
v1.0.2
by Blizzard_87

ThreadStart
Description
-----------
With this plugin, each new round a random player is selected from each team and set as that teams VIP.
the whole team needs to protect there teams VIP while trying to kill the other teams VIP.
in order to win the round you need to kill the opposites team VIP player, round will end.
its pretty much gameplay from as_oilrig but on every map.

Commands
--------
say /vrank - shows a color message with your current stats for PTV Stats
say /vtop15 - shows MOTD with current top15 players ranking top who killed Most VIP's

Plugin Installation
-------------------
im not really good at explaining install info, but here goes ( if someone wants to rewrite the install to easy read please do lol )

you only need to worry about this special install instructions if you use amx_ptv_forcemode "0" which uses Round Terminator which requires Orpheu (http://forums.alliedmods.net/showthread.php?t=116393)!.

all included files are attached to install Orpheu (http://forums.alliedmods.net/showthread.php?t=116393) and Round Terminator on your server.
more detailed install instructions are in its thread here (http://forums.alliedmods.net/showthread.php?p=1122356)

you also need to compile Protect-The-VIP.sma locally with the round_terminator.inc file.

use the Get Plugin (http://www.amxmodx.org/plcompiler_vb.cgi?file_id=121317) Link at bottom.

Models
--------
unzip the models and place the folders into the models/player/ folder.

Credits
--------
hornet (https://forums.alliedmods.net/member.php?u=73639) - suggesting change client_connect and optimize code for easier reading.

Requirement
-----------------
It has been brought to my attention thanks (ANTICHRISTUS), that i should of noted that this plugin requires the nVault_Util include which isnt supported by the online compiler which i thought it was sorry guys.
Link To Include File Directly Here (http://forums.alliedmods.net/attachment.php?attachmentid=74573&d=1286079970)
Link To nVault_Util Include Thread On Howto Install/Use Here (http://forums.alliedmods.net/showthread.php?t=139584)
download both SMA and INC file then goto this site Here (http://amxxcomp.com/index.php) and Compile if you dont know howto compile locally.

ChangeLog
------------
June 16/06/2013 02:38PM
- v1.0.2 - [ CHANGED ] the way round end is forced, switches team to spec then back again
does not require Orpheu or Round Terminator anymore.

June 15/06/2013 06:50PM
- v1.0.1 - [ CHANGED ] client_connect to client_putinserver ( thanks hornet )
[ OPTIMIZED ] made code slightly easier to read as suggested by hornet.

June 15/06/2013
- v1.0.0 - Inital Release

Plugin Download Count
42+ Current

ThreadEnd
.

hornet
06-15-2013, 04:23
Since Orpheu Module might get updated, you should link to the module's thread instead. I'll have a look at the plugin on my pc.

Blizzard_87
06-15-2013, 04:36
Since Orpheu Module might get updated, you should link to the module's thread instead. I'll have a look at the plugin on my pc.

edited post with Orpheu words linked to thread...

hornet
06-15-2013, 05:12
All I'd really recommend for now is changing client_connect() to authorised or putinserver so the loading function isn't called as often. ( That way people connecting and disconnecting immediately won't have any effect ). And perhaps also maybe a bit of line separation after new vars or operators, to an extent of course. That part's just my opinion really, but I think it would be more readable ;)

Blizzard_87
06-15-2013, 05:44
I will make the edits when I get back to computer

Jhob94
06-15-2013, 09:19
Oh god you did it fast xD
Afraid i tried to create it too? :3
Didnt looked at code yet but from your description, gj ;)

Smatify
06-15-2013, 09:47
show_dhudmessage( T_VIP, "Your The VIP!, Be Careful")

:arrow:

show_dhudmessage( T_VIP, "You are The VIP!, Be Careful")

or am I wrong?

Kia
06-15-2013, 10:44
show_dhudmessage( T_VIP, "Your The VIP!, Be Careful")

:arrow:

show_dhudmessage( T_VIP, "You are The VIP!, Be Careful")

or am I wrong?

You asked me how to write it and then you post it here with the question if it's wrong.
Great Job, Sascha, great job.. :)

oxygen935
06-15-2013, 11:32
Good Work Blizzard, this suits great on multimod server...

Blizzard_87
06-15-2013, 18:43
Oh god you did it fast xD
Afraid i tried to create it too? :3
Didnt looked at code yet but from your description, gj ;)

thanks Jhob94 the only thing that took me a while was the forcing team win.. then i decided to use cvar so you could choose to use slaying teams or use the Round Terminator which requires Orpheu.

show_dhudmessage( T_VIP, "Your The VIP!, Be Careful")

:arrow:

show_dhudmessage( T_VIP, "You are The VIP!, Be Careful")

or am I wrong?

your not wrong, but thats just how ive got it set... if enough people like it i might add ML.

You asked me how to write it and then you post it here with the question if it's wrong.
Great Job, Sascha, great job.. :)

dont understand what you mean and whos Sascha?

Good Work Blizzard, this suits great on multimod server...

thanks.

Smatify
06-15-2013, 18:46
dont understand what you mean and whos Sascha?


My real name is Sascha and I asked Kia if it is wrong :D

Blizzard_87
06-16-2013, 01:38
Updated Version

- v1.0.2 - [ CHANGED ] the way round end is forced, switches team to spec then back again
does not require Orpheu or Round Terminator anymore.

TheDS1337
06-18-2013, 11:04
this code uses lot of styles, anyway GJ :D

Blizzard_87
06-18-2013, 17:03
this code uses lot of styles, anyway GJ :D

what do you mean? if your talking about how it ends the round... it only uses one method now.

XINLEI
06-19-2013, 01:14
This is nice, what do you think about adding DM like this one (https://forums.alliedmods.net/showthread.php?t=103679)?

Blizzard_87
06-19-2013, 01:59
This is nice, what do you think about adding DM like this one (https://forums.alliedmods.net/showthread.php?t=103679)?

donno if i will add a respawn feature to this... if it gets more interest i might...

EDIT:

updated thread as i forgot to add note about needing to include nVault_Util.

Jhonn
04-06-2014, 17:09
it only shows the top motd for online players only. To arrange please!

HamletEagle
01-14-2016, 16:09
Unapproved per author request.