Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < cstrike >
- #include < hamsandwich >
- #include < fakemeta_util >
- new g_round[33]
- const WEAPON_BITSUM = (1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_P90) |
- (1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) |
- (1<<CSW_AK47) | (1<<CSW_GALIL);
- enum {
- SCOREATTRIB_ARG_PLAYERID = 1,
- SCOREATTRIB_ARG_FLAGS
- }
- enum ( <<= 1 ) {
- SCOREATTRIB_FLAG_NONE = 0,
- SCOREATTRIB_FLAG_DEAD = 1,
- SCOREATTRIB_FLAG_BOMB,
- SCOREATTRIB_FLAG_VIP
- }
- public plugin_init() {
- register_plugin("All Vip", "1.0", "A k c 3 n 7")
- RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1)
- register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib")
- set_task( 60.0, "message", _, _, _, "b" );
- }
- public menu( id ) {
- new menu = menu_create( "Weapons", "menu_handler" )
- menu_additem( menu, "\rM4A1-DG-HE-FLASH" );
- menu_additem( menu, "\rAK47-DG-HE-FLASH" );
- menu_additem( menu, "\rAWP-DG-HE-FLASH" );
- menu_setprop( menu, MPROP_EXIT, MEXIT_ALL)
- menu_display( id, menu, 0 );
- }
- public message(id) {
- print_color(0, "!eVIP Free pentru toti jucatorii nostri!")
- }
- public MessageScoreAttrib(iMsgId, iDest, iReceiver) {
- set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
- }
- public PlayerPostSpawn(id) {
- if(!is_user_alive(id)) return
- if( g_round[ id ] > 1 ) {
- menu( id )
- }
- else {
- g_round[ id ]++
- }
- if( g_round[ id ] > 0 ) {
- switch( cs_get_user_team( id ) )
- {
- case CS_TEAM_T: fm_strip_user_gun( id, CSW_GLOCK18, "weapon_glock18"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
- case CS_TEAM_CT: fm_strip_user_gun( id, CSW_USP, "weapon_usp"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
- }
- }
- g_round[id]++
- }
- public menu_handler( id, menu, item )
- {
- switch( item )
- {
- case 0:
- {
- drop_primary( id )
- fm_give_item(id, "weapon_m4a1"), cs_set_user_bpammo(id, CSW_M4A1, 90)
- fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
- fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
- }
- case 1:
- {
- drop_primary( id )
- fm_give_item(id, "weapon_ak47"), cs_set_user_bpammo(id, CSW_M4A1, 90)
- fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
- fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
- }
- case 2:
- {
- drop_primary( id )
- fm_give_item(id, "weapon_awp"), cs_set_user_bpammo(id, CSW_M4A1, 90)
- fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
- fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
- }
- }
- menu_destroy( menu )
- return PLUGIN_HANDLED;
- }
- drop_primary(id)
- {
- static weapons[32], num
- get_user_weapons(id, weapons, num)
- for (new i = 0; i < num; i++)
- {
- if (WEAPON_BITSUM & (1<<weapons[i]))
- {
- static wname[32];
- get_weaponname(weapons[i], wname, sizeof wname - 1)
- engclient_cmd(id, "drop", wname)
- }
- }
- }
- stock print_color( const id, const input[ ], any:... )
- {
- new count = 1, players[ 32 ]
- static msg[ 191 ]
- vformat( msg, 190, input, 3 )
- replace_all( msg, 190, "!v", "^4" ) //- verde
- replace_all( msg, 190, "!g", "^1" ) //- galben
- replace_all( msg, 190, "!e", "^3" ) //- echipa
- replace_all( msg, 190, "!n", "^0" ) //- normal
- 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( );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement