could u add this to this??
#include < amxmodx >
#include < amxmisc > #include < hamsandwich > #define MAX_PLAYERS 32 new Float:g_flTimePlayed[ MAX_PLAYERS + 1 ]; new g_pCvarTimeToPlay, g_pCvarAccesFlag; public plugin_init( ) { register_plugin( "Time VIPs", "0.0.1", "Kid" ); RegisterHam( Ham_Spawn, "player", "hamSpawnPost", 1 ); g_pCvarTimeToPlay = register_cvar( "vip_time", "10" ); // In hours g_pCvarAccesFlag = register_cvar( "vip_flag", "t" ); // ADMIN_LEVEL_H flag. } public client_putinserver( id ) { g_flTimePlayed[ id ] = get_gametime( ); } public client_disconnect( id ) { checkTime( id, 0 ); } public hamSpawnPost( id ) { checkTime( id, is_user_connected( id ) ); } public checkTime( id, connected ) { g_flTimePlayed[ id ] = ( get_gametime( ) - g_flTimePlayed[ id ] ); new time = floatround( g_flTimePlayed[ id ] ); if ( ( time >= ( get_pcvar_num( g_pCvarTimeToPlay ) * 3600 ) ) && !is_user_admin( id ) ) { new szAuthId[ 35 ], szFlags[ 26 ]; get_user_authid( id, szAuthId, charsmax( szAuthId ) ); get_pcvar_string( g_pCvarAccesFlag, szFlags, charsmax( szFlags ) ); server_cmd( "amx_addadmin ^"%s^" ^"%s^" ^"^" ^"steamid^"", szAuthId, szFlags ); if ( connected ) { client_print( id, print_chat, "u became vip" ); } } g_flTimePlayed[ id ] = get_gametime( ); } could u add hud message when player reaches 1 hour 2 3 4 5 etc until he gets 20hours then he becomes admin_level_h?? could u add nvault ?? to it? so hours spent on server will be saved?? by steam_id?? |
Re: could u add this to this??
|
| All times are GMT -4. The time now is 00:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.