Raised This Month: $32 Target: $400
 8% 

VIPSystem


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 06-25-2011 , 09:08   VIPSystem
Reply With Quote #1

VIPSystem
v1.4


Bitbucket


Description:
The plugin allows to give to players special privileges. The system gives separate system registration of the player, supports 2 types of privileges: working constantly and chosen in the menu. The system of flags gives the chance to set to each player the set of privileges. Registration of new privileges occurs at the expense of addition of plug-ins that gives to system flexibility. The system doesn't depend from a mode.

Additions:
VSAdditionalLivesItem - gives additional lives
VSWeapons - weapons: M4A1, AK47, AWP, Galil, Famas, Desert Eagle and grenades
VSVipStatus - show vip status in table
VSVipSpeed - sets the vip speed with any weapon
VSVipsOnline - show vips online
VSVipPrefixColoredTranslit - adds prefixes [VIP] in the chat. Compatible with ColoredTranslit
VSVipPrefixAndGreenChat - adds prefixes [VIP] in the chat and text message is green
VSVipPrefix - adds prefixes [VIP] in the chat
VSVipChat - adds a private chat for vips
VSSpawnGrenades - gives all grenades in respawn
VSSpawnArmor - gives armor in respawn
VSReserveSlot - allows to add reserve slots for vips
VSPistolsItem - allows to take any pistol
VSLongJumpItem - gives longjump
VSKickAndBanAccess - allows you to kick and ban players
VSInvisItem - gives invisibility
VSIncreaseScoreItem - increase score
VSGravityItem - set gravity
VSCTBombRadar - shows the location of the bomb for CT on the radar
VSBulletDamage - shows the damage done
VSBecomeTerroristItem - changes team for terrorists
VSArmorItem - gives armor
VSAmmoAndGrenadesItem - gives ammo and all grenades

More detailed information in source codes.

Cvars:
vs_password_field - name of setinfo which should store a password on a client.
vs_amount_opening_menu - Quantity of times of opening of the menu for one life.
Note: 0 - not limited.

Commands:
vips_list - print vip list in the server console.
vip_menu, say /vip_menu, say /vm, say /menu - privileges menu.
addvip <Name|IP|Steam> <Password> <access flags> <account flags> <date (dd.mm.yy)> - add new VIP'а.

Include
Code:
/* Access flags */
#define VIP_FLAG_ALL 0      // Any flag
#define VIP_FLAG_A (1<<0)   // Flag "a"
#define VIP_FLAG_B (1<<1)   // Flag "b"
#define VIP_FLAG_C (1<<2)   // Flag "c"
#define VIP_FLAG_D (1<<3)   // Flag "d"
#define VIP_FLAG_E (1<<4)   // Flag "e"
#define VIP_FLAG_F (1<<5)   // Flag "f"
#define VIP_FLAG_G (1<<6)   // Flag "g"
#define VIP_FLAG_H (1<<7)   // Flag "h"
#define VIP_FLAG_I (1<<8)   // Flag "i"
#define VIP_FLAG_J (1<<9)   // Flag "j"
#define VIP_FLAG_K (1<<10)  // Flag "k"
#define VIP_FLAG_L (1<<11)  // Flag "l"
#define VIP_FLAG_M (1<<12)  // Flag "m"
#define VIP_FLAG_N (1<<13)  // Flag "n"
#define VIP_FLAG_O (1<<14)  // Flag "o"
#define VIP_FLAG_P (1<<15)  // Flag "p"
#define VIP_FLAG_Q (1<<16)  // Flag "q"
#define VIP_FLAG_R (1<<17)  // Flag "r"
#define VIP_FLAG_S (1<<18)  // Flag "s"
#define VIP_FLAG_T (1<<19)  // Flag "t"
#define VIP_FLAG_U (1<<20)  // Flag "u"
#define VIP_FLAG_V (1<<21)  // Flag "v"
#define VIP_FLAG_W (1<<22)  // Flag "w"
#define VIP_FLAG_X (1<<23)  // Flag "x"
#define VIP_FLAG_Y (1<<24)  // Flag "y"
#define VIP_FLAG_Z (1<<25)  // Flag "z"

/* Returns 1 if player is VIP, otherwise 0 */
native VSGetUserVip(id)

/* Returns 1 if player have a flag, otherwise 0 */
native VSGetVipFlag(id, flag)

/* Returns flags the player as sum of bits */
native VSGetVipFlags(id)

/* Register new item
Parameters: 
	name - item name
	flag - access flag
Returns:
	id of item
*/
native VSRegisterItem(name[], flag)

/* Returns 1 if the privilege is enabled, otherwise 0 */
native VSGetItemState(id)

/* Activate the privilege on the menu */
native VSEnableItem(id)

/* Disables the privilege of the menu */
native VSDisableItem(id)

/* Sets the privileges name of the menu */
native VSSetItemName(id, name[])

/* Called when the player has chosen an element */
forward VSItemSelected(id, itemid)

/* Called when a VIP connects */
forward VSVipConnect(id)

/* Called when player opening menu */
forward VSOpeningMenu(id)
Item menu example
Code:
/* VSPluginNameItem v1.0 */

#include <amxmodx>
#include <VIPSystem>

#define ACCESS_FLAG VIP_FLAG_C

new curItem

public plugin_init() 
{
	register_plugin("VSPluginNameItem", "1.0", "Author")
	
	curItem = VSRegisterItem("Item Name", ACCESS_FLAG)
}

public VSItemSelected(id, itemid)
{
	if (itemid == curItem)
	{
		// code...
	}
	
	return PLUGIN_HANDLED;
}
Languages
[ru] ZETA [M|E|N]
[ro] Dabb
[lv] jazyxtc
[pt] nelsonsimpsonz
[sk] cstriker

Links
Official page
Russian Community

With love from Russia
Attached Files
File Type: zip VIPSystem.zip (11.6 KB, 2814 views)
File Type: zip VSPlugins.zip (21.1 KB, 2497 views)

Last edited by zetamen; 11-23-2012 at 10:33. Reason: Updated
zetamen is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-25-2011 , 11:43   Re: VIPSystem
Reply With Quote #2

You are not allowed to upload .amxx files.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 06-25-2011 , 13:54   Re: VIPSystem
Reply With Quote #3

fixed
zetamen is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 06-25-2011 , 14:43   Re: VIPSystem
Reply With Quote #4

nice man
__________________
GuTo is offline
Send a message via Skype™ to GuTo
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-25-2011 , 15:42   Re: VIPSystem
Reply With Quote #5

PHP Code:
#include <cellarray> 
Don't need to be included.


PHP Code:
if ((acc VIP_STEAM) && equal(authuserAuth))
        {
            
vip[id] = true;
            
vipFlags[id] = flags;
            break;
        }
        else if ((
acc VIP_IP) && equal(authuserIp))
        {
            
vip[id] = true;
            
vipFlags[id] = flags;
            break;
        }
        else if ((
acc VIP_NAME) && equal(authuserName) && equal(passuserPass))
        {
            
vip[id] = true;
            
vipFlags[id] = flags;
            break;
        }
    } 
->
PHP Code:
if ( ((acc VIP_STEAM) && equal(authuserAuth)) || ( (acc VIP_IP) && equal(authuserIp) ) || ( (acc VIP_NAME) && equal(authuserName) && equal(passuserPass) ) )
        {
            
vip[id] = true;
            
vipFlags[id] = flags;
            break;
        } 
__________________
Retired.

Last edited by Xalus; 06-25-2011 at 15:47.
Xalus is offline
al3amri
Member
Join Date: May 2011
Old 06-26-2011 , 01:49   Re: VIPSystem
Reply With Quote #6

Good Job ^^
__________________
YO !
al3amri is offline
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 07-02-2011 , 16:33   Re: VIPSystem
Reply With Quote #7

niceee mate..
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
WarZ
Member
Join Date: Aug 2006
Old 07-03-2011 , 14:41   Re: VIPSystem
Reply With Quote #8

Im getting fatal error 100 when trying to compile the VSPlugins? :S
WarZ is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 07-04-2011 , 03:12   Re: VIPSystem
Reply With Quote #9

Quote:
Originally Posted by WarZ View Post
Im getting fatal error 100 when trying to compile the VSPlugins? :S
You used web-compiler? This can't use because need vipsystem.inc.
zetamen is offline
zetamen
Junior Member
Join Date: Mar 2010
Location: Russia
Old 07-06-2011 , 13:47   Re: VIPSystem
Reply With Quote #10

+2 additions: CTBombRadar and BulletDamage

Last edited by zetamen; 04-16-2012 at 03:41.
zetamen is offline
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 21:49.


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