Raised This Month: $51 Target: $400
 12% 

Commander Status - API (29.03.2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 03-18-2012 , 17:52   Commander Status - API (29.03.2012)
Reply With Quote #1


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.


How to use api:[top]
- At the top of your plugin add :
PHP Code:
native is_user_commander(const client
- Now you can to check's, such as
PHP Code:
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.


Changelog[top]
Code:
v2.5 - Added ML. More languages added here.
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
Attached Files
File Type: sma Get Plugin or Get Source (commander.sma - 1103 views - 6.2 KB)
File Type: sma Get Plugin or Get Source (commander_api_test.sma - 978 views - 254 Bytes)
File Type: txt commander_ml.txt (1.8 KB, 317 views)
__________________

Last edited by Ex1ne; 04-22-2012 at 07:20.
Ex1ne is offline
Xvil
BANNED
Join Date: Feb 2012
Old 03-19-2012 , 03:51   Re: Commander Status - API (18.03.2012)
Reply With Quote #2

PHP Code:
if(is_user_commander[id]) 
??

Last edited by Xvil; 03-19-2012 at 03:51.
Xvil is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 03-19-2012 , 03:52   Re: Commander Status - API (18.03.2012)
Reply With Quote #3

I know :s i realized it when i was on my phone, and i couldn't log in, it's fixed now.
__________________
Ex1ne is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 03-27-2012 , 15:41   Re: Commander Status - API (18.03.2012)
Reply With Quote #4

something like this call cstactics by Hawk552
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 03-28-2012 , 03:05   Re: Commander Status - API (28.03.2012)
Reply With Quote #5

Updated to 2.4!
change log in 1st post.
__________________
Ex1ne is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 03-28-2012 , 19:47   Re: Commander Status - API (28.03.2012)
Reply With Quote #6

Yey,
They are remaking our ideas again.
__________________
Retired.
Xalus is offline
Xvil
BANNED
Join Date: Feb 2012
Old 03-29-2012 , 07:36   Re: Commander Status - API (28.03.2012)
Reply With Quote #7

Where is the include file ??

Last edited by Xvil; 03-29-2012 at 07:36.
Xvil is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 03-29-2012 , 08:16   Re: Commander Status - API (28.03.2012)
Reply With Quote #8

Quote:
Originally Posted by Xvil View Post
Where is the include file ??
There ain't no include, there's a howto section here.
__________________

Last edited by Ex1ne; 03-29-2012 at 08:17.
Ex1ne is offline
Larcyn
Senior Member
Join Date: Oct 2010
Old 03-29-2012 , 08:18   Re: Commander Status - API (28.03.2012)
Reply With Quote #9

Quote:
Originally Posted by Xvil View Post
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.
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)
Larcyn is offline
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 03-29-2012 , 18:56   Re: Commander Status - API (29.03.2012)
Reply With Quote #10

gj, i do not like API plugins.
xDrugz 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 09:55.


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