AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   UserWelcome with CountryName (https://forums.alliedmods.net/showthread.php?t=28912)

SweatyBanana 05-25-2006 18:08

UserWelcome with CountryName
 
9 Attachment(s)
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

Hawk552 05-25-2006 18:10

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.

SweatyBanana 05-25-2006 18:14

Eh..lol...forgot about that.

updated to get_user_name.

And whats wrong with a print_chat?

Hawk552 05-25-2006 18:15

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.

SweatyBanana 05-25-2006 18:19

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.

Hawk552 05-25-2006 18:22

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.

SweatyBanana 05-25-2006 18:25

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 :)

Hawk552 05-25-2006 18:28

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.

SweatyBanana 05-25-2006 18:31

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.

Hawk552 05-25-2006 18:32

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.


All times are GMT -4. The time now is 02:53.

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