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

Guardian (Gears of War 2) 1.43 - 2015-06-13


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
JoshGomez
Member
Join Date: Apr 2006
Location: Sweden
Old 09-15-2009 , 10:44   Guardian (Gears of War 2) 1.43 - 2015-06-13
Reply With Quote #1

Guardian based on Gears of War 2, a game type which add a team leader to your team who is the guardian. As long the team leader is alive other player will be respawned. The Guardian spawn with 150hp, 200ap and glowing the same colour as the team. A status icon will also indicate when you are the guardian. The team mates have to protect him or her while some has to attack the other guardian to win.

Code:
amx_guardian, sv_guardian = 1/0
- Turn on and off the plugin.

sv_ga_spawntime, amx_ga_spawntime = Float
- The time it takes for respawning, defualt 5.0.

sv_ga_weapon, amx_ga_weapon = String
- The weapon you will respawn with, default weapon_mp5navy.

sv_ga_ammo, amx_ga_ammo = String
- The ammo you will respawn with, defualt ammo_9mm.

amx_ga_*
- Console commands
sv_ga_*
- Server commands

say /guardian|s
- Show who are the current guardians.
http://wiki.amxmodx.org/CS_Weapons_Information

Version 1.0
- First release
Version 1.1
- Removed Log Events
- Changed some Events to Ham Events
- Fixed Team Change bug
- Added Guardian Kill Notice as HUD
Version 1.2
- Multilingual support
- CS VIP support
Version 1.21
- Fixed Multilingual
Version 1.22
- Small optimization
Version 1.23
- Small Fix
Version 1.3
- Fixed Status Icon may not be shown after next round
- Fixed Gurdian will spawn in opposite team when the player
change team while he or she is a guardian
- Small optimization
Version 1.4
- Added Color Messages
- Added two commands to see who are the guardians
Version 1.42
- Fixed Guardian would still be alive after disconnect
- Fixed Guardian would still be alive after changing to spectator
Version 1.43
- I think Guardian will spawn as Server is fixed. (Request from someone)

Special Thanks:
Crazyeffect - Added multilingual support
Alejo324 - Spanish translation
Salau - Portuguese translation
Attached Files
File Type: txt guardian.txt (2.0 KB, 1404 views)
File Type: sma Get Plugin or Get Source (guardian.sma - 1143 views - 11.7 KB)

Last edited by JoshGomez; 06-13-2015 at 12:45. Reason: New Version
JoshGomez is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-15-2009 , 10:46   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #2

Quote:
As long the team leader is alive other player will be respawned
interesting plugin!
But code need much optimization/changes :0
__________________

Last edited by xbatista; 09-15-2009 at 10:56.
xbatista is offline
Send a message via Skype™ to xbatista
JoshGomez
Member
Join Date: Apr 2006
Location: Sweden
Old 09-15-2009 , 10:55   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #3

thanks and where do i need to change?
JoshGomez is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-15-2009 , 11:01   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #4

Example:
Called 1 or more times
PHP Code:
register_event("ResetHUD","event_hud_reset","be"); 
--->
PHP Code:
RegisterHam(Ham_Spawn"player",  "event_hud_reset"1
Called 1 time.
Also check if player alive
PHP Code:
public event_hud_reset(id)
{    
    if (!
is_user_alive(id))
        return;

// code

__________________

Last edited by xbatista; 09-15-2009 at 11:04.
xbatista is offline
Send a message via Skype™ to xbatista
JoshGomez
Member
Join Date: Apr 2006
Location: Sweden
Old 09-15-2009 , 11:06   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #5

I see, well so I should loop through players then when its only called one time?
JoshGomez is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-15-2009 , 11:11   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #6

It is called for every player.
No need to loop.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-15-2009 , 11:12   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #7

Josh No, just look at my previous post what I posted to you
__________________
xbatista is offline
Send a message via Skype™ to xbatista
JoshGomez
Member
Join Date: Apr 2006
Location: Sweden
Old 09-15-2009 , 11:23   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #8

xbatista and ot_207 thanks

Is there any world event before spawn I can register which is called one time? Would be great if anyone could tell.

However I going to do homework so I will optimize later.
JoshGomez is offline
Viera
Senior Member
Join Date: Sep 2008
Location: Poland
Old 09-15-2009 , 14:03   Re: Guardian (Gears of War 2) 1.0
Reply With Quote #9

Goog job + for you.
Viera is offline
Old 09-15-2009, 15:17
Viera
This message has been deleted by Viera. Reason: I delete this plugin of my serv.
JoshGomez
Member
Join Date: Apr 2006
Location: Sweden
Old 09-16-2009 , 06:10   Re: Guardian (Gears of War 2) 1.1 - 16/09/2009
Reply With Quote #10

New Version
JoshGomez 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 11:11.


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