- #include < cstrike >
- #include < zombie_escape >
- native give_vip_ethereal(id)
- native give_vip_darknight(id)
- native give_vip_ak47balrog(id)
- new const PLUGIN_INFO[ ] =
- {
- "vip menu",
- "1.0",
- "texasik"
- }
- enum _: pOptionVIP
- {
- PAKI,
- HP,
- ARMOR
- }
- new g_menuVipBlock[ 33 ] [ pOptionVIP ]
- new g_menuBlockWeapon[ 33 ]
- new g_menuBlockWeapon2[ 33 ]
- new g_menuBlockWeapon3[ 33 ]
- public plugin_init( )
- {
- register_plugin( PLUGIN_INFO[ 0 ] , PLUGIN_INFO[ 1 ] , PLUGIN_INFO [ 2 ] )
- register_clcmd("vip_menu" , "ClCmd_VipMenu" )
- register_event( "HLTV" , "event_round_start" , "a" , "1=0" , "2=0" )
- }
- public event_round_start( pPlayer )
- {
- for(new i = 0; i < 33; i++)
- {
- if(is_user_connected(i))
- {
- if(g_menuVipBlock[i][ARMOR] >= 1) g_menuVipBlock[i][ARMOR] = 0
- if(g_menuVipBlock[i][HP] >= 1) g_menuVipBlock[i][HP] = 0
- if(g_menuBlockWeapon[i] >= 1) g_menuBlockWeapon[i] = 0
- if(g_menuBlockWeapon2[i] >= 1) g_menuBlockWeapon2[i] = 0
- if(g_menuBlockWeapon3[i] >= 1) g_menuBlockWeapon3[i] = 0
- }
- }
- }
- public ClCmd_VipMenu( pPlayer )
- {
- if(ze_is_user_zombie(pPlayer))
- return;
- new g_AdminMenu = menu_create( "\wFull V.I.P \r[Menu]" , "ClCmd_VipMenu_Handler" )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && ze_is_user_zombie(pPlayer) && !is_user_alive(pPlayer))
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wWeapons" , "1" )
- else
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wWeapons" , "1" )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuVipBlock[ pPlayer ] [ PAKI ] < 1 )
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wFree \y[100] \wPack's" , "2" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\d[Full VIP's] \wFree \y[100] \wPack's" , "2" , ADMIN_RESERVATION )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuVipBlock[ pPlayer ] [ HP ] < 1 && is_user_alive(pPlayer))
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wFree \y[100] \wHealth" , "3" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wFree \y[100] \wHealth" , "3" , ADMIN_RESERVATION )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuVipBlock[ pPlayer ] [ ARMOR ] < 1 && !ze_is_user_zombie(pPlayer) && is_user_alive(pPlayer))
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wFree \y[200] \wArmor" , "4" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wFree \y[100] \wArmor" , "4" , ADMIN_RESERVATION )
- if( ! ( get_user_flags( pPlayer ) & ADMIN_RESERVATION ) )
- menu_setprop( g_AdminMenu , MPROP_EXITNAME , "\wExit^n\wNu ai acces la Menu \r[Full VIP's]! \w[Write]: \r/VIP" )
- else
- menu_setprop( g_AdminMenu , MPROP_EXITNAME , "Exit" )
- menu_setprop( g_AdminMenu , MPROP_EXIT , MEXIT_ALL )
- menu_display( pPlayer , g_AdminMenu , 0 )
- }
- public ClCmd_VipMenu_Handler( pPlayer , pMenu, pItem )
- {
- if ( pItem == MENU_EXIT || ~get_user_flags( pPlayer ) & ADMIN_RESERVATION)
- {
- menu_destroy( pMenu )
- return PLUGIN_HANDLED;
- }
- new pData[ 6 ], pName[ 64 ], pAccess, pCallback
- menu_item_getinfo( pMenu , pItem , pAccess , pData , charsmax( pData ) , pName , charsmax( pName ) , pCallback )
- new pKey = str_to_num( pData )
- switch( pKey )
- {
- case 1:
- {
- if(ze_is_user_zombie(pPlayer) || is_user_alive(pPlayer))
- {
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- weapon_menu_vip( pPlayer )
- menu_destroy( pMenu )
- return PLUGIN_HANDLED
- }
- case 2:
- {
- if(g_menuVipBlock[ pPlayer ] [ PAKI ] >= 1)
- {
- PrintChatColor( pPlayer , "!yOn this map, you can not take !gPack's!y!" )
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- ze_set_escape_coins( pPlayer , ze_get_escape_coins( pPlayer ) + 100 )
- PrintChatColor( pPlayer , "!yYou took !g[Pack's]!y!" )
- g_menuVipBlock[ pPlayer ] [ PAKI ]++
- ClCmd_VipMenu( pPlayer )
- }
- case 3:
- {
- if(is_user_alive(pPlayer))
- {
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- if(g_menuVipBlock[ pPlayer ] [ HP ] >=1)
- {
- PrintChatColor( pPlayer , "!yIn this round, you can not take !gHealth" )
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- set_user_health( pPlayer , get_user_health( pPlayer ) + 100 )
- PrintChatColor( pPlayer , "!yYou took !g[Health]" )
- g_menuVipBlock[ pPlayer ] [ HP ]++
- ClCmd_VipMenu( pPlayer )
- }
- case 4:
- {
- if(ze_is_user_zombie(pPlayer) || is_user_alive(pPlayer))
- {
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- if(get_user_armor(pPlayer) >= 200)
- {
- PrintChatColor( pPlayer , "!yYou have the most !gArmor" )
- set_user_armor(pPlayer, 200)
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- if(g_menuVipBlock[ pPlayer ] [ ARMOR ] >= 1)
- {
- PrintChatColor( pPlayer , "!yIn this round, you can not take !gArmor" )
- ClCmd_VipMenu( pPlayer )
- return PLUGIN_HANDLED;
- }
- set_pev(pPlayer, pev_armorvalue, float(min(pev(pPlayer, pev_armorvalue)+200, 200)))
- PrintChatColor( pPlayer , "!yYou took !g[Armor]" )
- g_menuVipBlock[ pPlayer ] [ ARMOR ]++
- ClCmd_VipMenu( pPlayer )
- }
- }
- menu_destroy( pMenu )
- return PLUGIN_HANDLED
- }
- public weapon_menu_vip( pPlayer )
- {
- new g_AdminMenu = menu_create( "\r[Full VIP's] \wWeapons" , "weapon_menu_vip_Handler" )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuBlockWeapon[ pPlayer ] < 1 )
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wEthereal \r|x2 Damage|" , "1" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\d[Full VIP's] \wEthereal \r|x2 Damage|" , "1" , ADMIN_RESERVATION )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuBlockWeapon2[ pPlayer ] < 1 )
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wM4A1 DarkNight \r|x2 Damage|" , "2" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\d[Full VIP's] \wM4A1 DarkNight \r|x2 Damage|" , "2" , ADMIN_RESERVATION )
- if( get_user_flags( pPlayer ) & ADMIN_RESERVATION && g_menuBlockWeapon3[ pPlayer ] < 1 )
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wAk-47 Balrog \r|x2 Damage|" , "3" , ADMIN_RESERVATION )
- else
- menu_additem( g_AdminMenu , "\r[Full VIP's] \wAk-47 Balrog \r|x2 Damage|" , "3" , ADMIN_RESERVATION )
- menu_setprop( g_AdminMenu , MPROP_EXITNAME , "Exit" )
- menu_setprop( g_AdminMenu , MPROP_EXIT , MEXIT_ALL )
- menu_display( pPlayer , g_AdminMenu , 0 )
- }
- public weapon_menu_vip_Handler( pPlayer , pMenu, pItem )
- {
- if ( pItem == MENU_EXIT || ~get_user_flags( pPlayer ) & ADMIN_RESERVATION)
- {
- menu_destroy( pMenu )
- return PLUGIN_HANDLED;
- }
- new pData[ 6 ], pName[ 64 ], pAccess, pCallback
- menu_item_getinfo( pMenu , pItem , pAccess , pData , charsmax( pData ) , pName , charsmax( pName ) , pCallback )
- new pKey = str_to_num( pData )
- switch( pKey )
- {
- case 1:
- {
- if(g_menuBlockWeapon[ pPlayer ] >= 1)
- {
- PrintChatColor( pPlayer , "!yYou already took weapons in this round!" )
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- give_vip_ethereal(pPlayer)
- PrintChatColor( pPlayer , "!yYou took !g[ Ethereal ]" )
- g_menuBlockWeapon[ pPlayer ]++
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- case 2:
- {
- if(g_menuBlockWeapon2[ pPlayer ] >= 1)
- {
- PrintChatColor( pPlayer , "!yYou already took weapons in this round!" )
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- give_vip_darknight(pPlayer)
- PrintChatColor( pPlayer , "!yYou took !g[ M4A1 DarkNight ]" )
- g_menuBlockWeapon2[ pPlayer ]++
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- case 3:
- {
- if(g_menuBlockWeapon3[ pPlayer ] >= 1)
- {
- PrintChatColor( pPlayer , "!yYou already took weapons in this round!" )
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- give_vip_ak47balrog(pPlayer)
- PrintChatColor( pPlayer , "!yYou took !g[ Ak-47 Balrog ]" )
- g_menuBlockWeapon3[ pPlayer ]++
- weapon_menu_vip( pPlayer )
- return PLUGIN_HANDLED
- }
- }
- menu_destroy( pMenu )
- return PLUGIN_HANDLED
- }
- stock PrintChatColor( const id , const input[], any:...)
- {
- new count = 1, players[32]
- static msg[191]
- vformat(msg, 190, input, 3)
- replace_all(msg, 190, "!g", "^4" ) // Green Color
- replace_all(msg, 190, "!y", "^1" ) // Default Color
- replace_all(msg, 190, "!team", "^3" ) // Team Color
- if (id) players[0] = id; else get_players(players, count, "ch")
- {
- for (new i = 0; i < count; i++)
- {
- if (is_user_connected(players[i]))
- {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText" ), _, players[i])
- write_byte(players[i]);
- write_string(msg);
- message_end();
- }
- }
- }
- }
api error
api error
i tried to CONVIRT some plugin to our mode but i have gut 2 error
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests