Raised This Month: $95 Target: $400
 23% 

UserWelcome with CountryName


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   GHW_Chronic (70)
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 19:08   UserWelcome with CountryName
Reply With Quote #1

CountryWelcome by SweatyBanana


This plugin makes an anouncement whenever someone joins your server saying:

SweatyBanana is ready to play.
SweatyBanana is from United States.



CVARS
  • amx_country_showall (0 = display to everyone, 1 = display to admins)
    • [DEFAULT 0]
    amx_country_method (How it is displayed)
    • 1 - CONSOLE
      2 - CHAT
      4 - TSAY
      8 - CSAY

      You can add then up like so:
      1 + 4 + 8 = 13 which gives you console, csay, and tsay.
      2 + 8 = 10 which gives you chat and csay.
      etc...etc..There are 15 combinations.
cwlang.txt goes in your addons/amxmodx/data/lang/ folder.

VERSIONS
  • v1.0 - Original
  • v1.1 - Fixed name checker..Changed to write_byte message in green
  • v1.2 - Took out cstrike include and re-aranged a few things.
  • v1.3 - Added cvar for admin display or all
  • v1.4 - Added a cvar to control how it is displayed
  • v1.5 - Way optimized thanks to hawk...Uses pcvars and fixed a bug in admins only
  • v1.6 - Fixed displaying to all players and removed HN.
  • v1.7 - MultiLingual support added.
CREDITS
Hawk said he doesnt like credit
SubStream idea for addative display types

Language Credits
en - SweatyBanana
de - flintst0nes
nl - geertjan88
pl - trawiator
sv - Fr3ak0ut
fin - Dx.123
bp - commonbullet
ro - Angelina
sp - souldeamon
Attached Files
File Type: sma Get Plugin or Get Source (countrywelcome.sma - 11700 views - 1.9 KB)
File Type: txt cwlang.txt (606 Bytes, 5984 views)

Last edited by SweatyBanana; 05-11-2007 at 00:44. Reason: New translation
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 19:10  
Reply With Quote #2

This already exists elsewhere, but it changes their name instead of saying where they're from. Kind of stupid IMO, especially since you use client_print and not HUD messages.

EDIT: Also, it's so incredibly small I wouldn't even call it a plugin.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 19:14  
Reply With Quote #3

Eh..lol...forgot about that.

updated to get_user_name.

And whats wrong with a print_chat?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 19:15  
Reply With Quote #4

Quote:
Originally Posted by SweatyBanana
Eh..lol...forgot about that.

updated to get_user_name.

And whats wrong with a print_chat?
I just said, for something like this, especially in a 32 slot server, it's better to use HUD messages. Why? The chat isn't spammed, and you can actually talk to people without random annoying messages.

I still think this is redundant and too short to be considered an approvable plugin.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 19:19  
Reply With Quote #5

Show me a plugin that does this..

I searched...there are plugins that add the country to name, let you type in console to see the country, but not a welcome message telling you what country the player is from.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 19:22  
Reply With Quote #6

Quote:
Originally Posted by SweatyBanana
Show me a plugin that does this..

I searched...there are plugins that add the country to name, let you type in console to see the country, but not a welcome message telling you what country the player is from.
There are plugins that modify your name in the scoreboard to contain the country you're from. They also take it away after you leave. I think it's by eisbein, I don't remember what it's called.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 19:25  
Reply With Quote #7

But that is not what my plugin does...

This plugin puts a message on screen when the client is put into game saying they are ready to play and they are from X country.

Anyway, updated with hudmessage for u
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 19:28  
Reply With Quote #8

Quote:
Originally Posted by SweatyBanana
But that is not what my plugin does...

This plugin puts a message on screen when the client is put into game saying they are ready to play and they are from X country.

Anyway, updated with hudmessage for u
When you can look at your scoreboard at any time and see what country someone is from, I don't see how a message only when they join will help at all.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 19:31  
Reply With Quote #9

So what you are saying is... because my plugin doesnt have what you think may be better, you are going to bash me and my plugin..

My plugin does what the other plugins do not.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-25-2006 , 19:32  
Reply With Quote #10

Quote:
Originally Posted by SweatyBanana
So what you are saying is... because my plugin doesnt have what you think may be better, you are going to bash me and my plugin..

My plugin does what the other plugins do not.
While we're at it, let's release the 100s of 10 line plugins I've made as requests in the scripting help and request / suggestion boards, because they do something marginally different from other plugins.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 14:26.


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