PDA

View Full Version : Commander Status - API (29.03.2012)


Ex1ne
03-18-2012, 17:52
top
Commander Status - API
Author: Ex1ne
Version: 2.5


Description:
- At the start of the round, a vote menu with all the CT's listed will be displayed to everyone.
- The winner of the vote will then receive the commander stats
- However, if there is only 1 CT, he get's the commander status immediately
- This plugin is aimed for jailbreak servers to make it so that only the ct that the most want to be commanding, will be.


How to instal:[top]
- The sma file must be compiled locally and the output .amxx file will go in 'addons\amxmodx\plugins\' folder.


To do:[top]
- Add more languages.


howtoHow to use api:[top]
- At the top of your plugin add : native is_user_commander(const client)
- Now you can to check's, such as if(is_user_commander(id))


Customization:[top]
- This also allows prefixes to the names at the vote, so if you have the TAG_ADMIN flag, your name at the vote will be: [Admin] *name*
- The same with "member", if you have the TAG_MEMBER flag, your name will be: [Member] *name*
- And with TAG_VIP, if you have that your name will be: [VIP] *name*
- The TAG_* can be changed at the top if the plugin.
http://i42.tinypic.com/20zv9eh.png

Changelog[top]

v2.5 - Added ML. More languages added here. (http://forums.alliedmods.net/showthread.php?p=1678054#post1678054)
v2.4 - Updated plugin (API fix), Description changes & added a plugin example.
v2.3 - Initial release.


Credit's to: [top]
- Emp for the new menus tut
- ShadowZ for testing
- DownXx for testing

Xvil
03-19-2012, 03:51
if(is_user_commander[id])
??

Ex1ne
03-19-2012, 03:52
I know :s i realized it when i was on my phone, and i couldn't log in, it's fixed now. :)

K.K.Lv
03-27-2012, 15:41
something like this call cstactics by Hawk552

Ex1ne
03-28-2012, 03:05
Updated to 2.4!
change log in 1st post.

Xalus
03-28-2012, 19:47
Yey,
They are remaking our ideas again.

Xvil
03-29-2012, 07:36
Where is the include file ??

Ex1ne
03-29-2012, 08:16
Where is the include file ??

There ain't no include, there's a howto section here. (http://forums.alliedmods.net/showthread.php?t=180673#howto)

Larcyn
03-29-2012, 08:18
Where is the include file ??

There's no include file needed for this, his API is just a simple native.


To be honest this is a lame copy of mTc, get your own ideas.

xDrugz
03-29-2012, 18:56
gj, i do not like API plugins.