Fail Spawn Protector + Team Limiter
1 Attachment(s)
Description:
This simple and useful plugin will protect you from dying due to bad spawn location. Now, you can spawn more players than existed spawn points inside map. This plugin is tested on special map with 32 spawnpoints at identical origin and its works nicely. Just visit this thread to read more about the testing.What can you edit? PHP Code:
This messages are printed in your server console:Note! This plugin need at least 1 valid spawn point in the map. This plugin also do not prevent connected player. It only removing or adding the spawn entity.Team Limiter: If you want to use this feature,just follow below method:Rare Problem! If the spawn entities configure via fw_TerrorMaxSpawn cvar and fw_CTMaxSpawn cvar is less than the original spawn entity, the player still be spawned at the beginning of round. As example, original spawn point is 10. If we configured it into 1, then all 10's player will be spawned at the same spawn location. So, what will happen, after round started, random player will died automatically until alive player is equal to new spawn entities or points.Credits: 1. xPaw.Changelog: Code:
v1.1 (6 Dis 2015) v1.0 - 40 v1.0 - 99 Feel free to use it. |
Re: Colorful Admin Message v1.0
Nike plugins, but i think if change command like admin_chat,
#-your text for corlor chat $-your text for hud chat it'll easy than this. |
Re: Colorful Admin Message v1.0
Code:
Cache get_user_msgid("SayText"). Don't re-index an array. |
Re: Colorful Admin Message v1.0
|
Re: Colorful Admin Message v1.0
Quote:
PHP Code:
|
Re: Colorful Admin Message v1.0
The better way is this:
Code:
|
Re: Colorful Admin Message v1.0
|
Re: Colorful Admin Message v1.0
You can search by yourself:
1. It's obvious, instead of using get_user_msgid every time, you cache it's value( it won't change during run time ). 2. Search on the wiki. |
Re: Colorful Admin Message v1.0
Quote:
I will update the code. Edit: Quote:
|
Re: Colorful Admin Message v1.1
This is pretty useless IMO, but given that there is no other plugin that does this I will let it pass if you make this changes:
1.#define ADMIN_FLAG ADMIN_IMMUNITY make it a cvar/command instead. 2.Add cvars for colors. You could let the owner decide if he wants random color or some predefined ones(that he can set up from cvars too). 3.message should be 192 and not 64. 192 is the max. 4.Remove the "stock" keyword, stock is used for functions that may not be used, but you should use everything from your plugin, thus "stock" does not make sense. 5.In print_colored:
Some suggestions: 1.Allow users to use this messages too(maybe a cvar, why not ?) 2.You could include a command like amx_showcolorcodes(or sth like this) and print the shortcuts(!g, etc). 3.Allow the player to specify to which player to send the message. For example, you may want to send the message only to player X or to all players. You can add another argument inside the command for this(like 0(for all)/CT/T/X(the player name)). |
All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.