It work like admin system of AMX-MODX with optimized coding you can create flags and assign to each flag some functions
This adds can edit easly from VIPSettings file:
✓ Auto reload or command to reload vip
✓ Scoreboard
✓ Command for adding user to the vip file
✓ Connect message
✓ list vip's online
✓ Free vip time
API
0
Full documentation can be found there, as well in include file:
/**
* Returns the chat prefix set in the plugin's configuration file.
*
* @param szBuffer Buffer to store the prefix in.
* @param iLen Maximum buffer length.
* @noreturn
*/
native get_vip_prefix( szBuffer[ ], iLen )
/**
* Returns the vip expire date set in the plugin's configuration file.
*
* @param id Client index.
* @param szBuffer Buffer to store the prefix in.
* @param iLen Maximum buffer length.
* @noreturn
*/
native get_vip_expire( id, szBuffer[ ], iLen )
/**
* Set in the plugin's configuration file.
*
* @param szID Client name or authid
* @param szPassword Client password
* @param szFlags Client Flags
* @param szExpireDate Client Expire Date
* @noreturn
*/
/**
* Checks if the client is VIP according to the VIP flags set in the plugin's configuration file or in subplugin's.
*
* @param id Client index.
* @return True if he is, false otherwise.
*/
native bool:is_user_vip( id )
/**
* Checks if the free vip time is active.
*
* @param id Client index.
* @return True if free vip active, false otherwise.
*/
native bool:is_free_vip_time( )
/**
* Returns the client is VIP according to the VIP flags.
*
* @param id Client index.
* @return Client VIP.
* @ex: get_user_vip( id ) & VIP_LEVEL_A
*/
native get_user_vip( id )
/**
* Set the client as VIP.
*
* @param id Client index.
* @param szFlags Client Flags.
* @return Client VIP.
*/
native set_user_vip( id, szFlags )
/**
* Remove the client from VIP flags.
*
* @param id Client index.
* @param szFlags Client Flags select one flags to get remove
* @noreturn
*/
native remove_user_vip( id, szFlags = -1 )
/**
* Returns if the client has any of the specified vip flags.
*
* @param id Client index
* @param flags Flag string
*
* @return 1 if the user has any of the specified flags, 0 otherwise
*/
/**
* Returns if the client has all of the specified vip flags.
*
* @param id Client index
* @param flags Flag string
*
* @return 1 if the user has all of the specified flags, 0 otherwise
*/
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <vip>
new g_cMaxSpeed
public plugin_init( )
{
register_plugin( "VIP: Speed", "1.0.0", "Supremache" )
g_cMaxSpeed = register_cvar( "vp_max_speed", "400" );
RegisterHam( Ham_Item_PreFrame, "player", "OnPlayerResetMaxSpeed", 1 );
}
public OnPlayerResetMaxSpeed( id )
{
if( is_user_alive( id ) && is_user_vip( id ) )
{
set_pev( id, pev_maxspeed, get_pcvar_float( g_cMaxSpeed ) );
}
}
How to use: Go to addons\amxmodx\configs and create config file with this name CustomModels.ini.
How to create a model: "Model Name" "Model Flags" "Model Team" for example "vip_model" "abcde" "1"
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie "Mathematics, rightly viewed, possesses not only truth, but supreme beauty — a beauty cold and austere, like that of sculpture..." -Bertrand Russell
Meh... I don't know man. Like, really? Another VIP system? It's an honest question though. What made u think this would be a good idea of putting your time and effort into something that's been already made several times?
What makes this so different from all other VIP systems, let alone OciXCrom's VIP system?
We should make and remake the plugin's those has less options or hard coding or doesn't update.
Quote:
Originally Posted by Napoleon_be
What makes this so different from all other VIP systems, let alone OciXCrom's VIP system?
I focused on make something like AMX-MODX admin system but without module and have full api so i added the impportant things to the plugin like Description and make the code full optimized, Even though i don't know about "OciXCrom's VIP system"
It's not the same, My plugin has a custom flags, that can let you use it like admin system but without module, you can create flags and assign to each flag some functions etc..
Interesting idea.
How about the expiration date hour free?
You can set the hour as static 23:59:59 so you only need "MM/DD/YYYY" on the config file. Looks much cleaner IMO
@bigdaddy424, Month/day/year?? Or you meant minute /hour/second, It's calling "free vip hours" it should be by hours and not by minute.
@Natsheh, If this is useless then i why i didn't found server without vip system, the vip system making the player special and making the server owners earning money so i remade it with adds more feature.