Raised This Month: $ Target: $400
 0% 

TFC Team Alert v1.0 ( based on allenwr's plugin )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   Gameplay       
GoGo_xD
Junior Member
Join Date: Jun 2006
Location: Paris, France
Old 07-04-2006 , 11:16   TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #1

TFC Team Alert v1.0

Quote:
This plugin is an adaptation of allenwr's Team Alert plugin for Team Fortress Classic.
What it does:

This plugin tells a player what team he is on when he respawns.
Here is a screenshot:



I'v made this plugin for my TFC server.

CVAR:

tfc_fade <0/1> will turn on (1) or off (0) the plugin effect.

SOURCE CODE:

Code:
/*  * TFC Team Alert v1.0  * Copyright (c) 2006-2007 - GoGo_xD    */ #include <amxmodx> new color_BLU[4]    = {   0 ,   0   , 255   ,  75 } new color_RED[4]    = { 255 ,   0   ,   0   ,  75 } new color_YEL[4]    = { 255 , 255   ,   0   ,  75 } new color_GRE[4]    = {   0 , 255   ,   0   ,  75 } public plugin_init() {     register_plugin("TFC Team Alert", "1.0", "GoGo_xD")     register_event("ResetHUD", "hud_fade", "be")     register_cvar("tfc_fade", "1") } public fade_effect(id, red, green, blue, alpha) {         message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);         write_short(5000)         write_short(5000)         write_short(0)         write_byte(red)         write_byte(green)         write_byte(blue)         write_byte(alpha)         message_end() } public hud_fade(id) {     if(get_cvar_num("tfc_fade") == 0)     {         return PLUGIN_HANDLED     }     else     {         switch(get_user_team(id))             {                 case 1:     fade_effect(id, color_BLU[0], color_BLU[1], color_BLU[2], color_BLU[3])                 case 2:     fade_effect(id, color_RED[0], color_RED[1], color_RED[2], color_RED[3])                 case 3:     fade_effect(id, color_YEL[0], color_YEL[1], color_YEL[2], color_YEL[3])                 case 4:     fade_effect(id, color_GRE[0], color_GRE[1], color_GRE[2], color_GRE[3])             }     }       return PLUGIN_CONTINUE }


Enjoy
Attached Files
File Type: zip TFC_Team_Alert_v1.0.zip (2.9 KB, 137 views)
File Type: amxx tfc_team_alert.amxx (2.1 KB, 198 views)
File Type: sma Get Plugin or Get Source (tfc_team_alert.sma - 1055 views - 1.4 KB)
__________________
I'm sorry for the bad english I can sometime use.
My TFC Server: 80.248.208.208:27015


Last edited by GoGo_xD; 07-04-2006 at 11:27.
GoGo_xD is offline
Send a message via MSN to GoGo_xD
Zenith77
Veteran Member
Join Date: Aug 2005
Old 07-04-2006 , 11:20   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #2

Upload the .sma file, don't just post the source.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
GoGo_xD
Junior Member
Join Date: Jun 2006
Location: Paris, France
Old 07-04-2006 , 11:28   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #3

Quote:
Originally Posted by Zenith77
Upload the .sma file, don't just post the source.
.sma , .amxx and full package uploaded
__________________
I'm sorry for the bad english I can sometime use.
My TFC Server: 80.248.208.208:27015

GoGo_xD is offline
Send a message via MSN to GoGo_xD
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-04-2006 , 11:28   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #4

I'm amazed by this growing trend of everyone's interpretation of "useful" becoming more and more liberal.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
GoGo_xD
Junior Member
Join Date: Jun 2006
Location: Paris, France
Old 07-04-2006 , 11:35   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #5

Quote:
Originally Posted by Hawk552
I'm amazed by this growing trend of everyone's interpretation of "useful" becoming more and more liberal.
Thanks for your "useful" comment.
__________________
I'm sorry for the bad english I can sometime use.
My TFC Server: 80.248.208.208:27015

GoGo_xD is offline
Send a message via MSN to GoGo_xD
Old 07-04-2006, 12:18
allenwr
This message has been deleted by Xanimos.
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 07-11-2006 , 10:38   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #6

Nice idea, XD
Maybe im going to instal it.
__________________
Um, hi.
Ramono is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-12-2006 , 09:54   Re: TFC Team Alert v1.0 ( based on allenwr's plugin )
Reply With Quote #7

This should absolutely NOT be a new plugin but rather added to the original one.

Unapproved.
__________________
Brad is offline
Reply



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 23:46.


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