Plugin VIP Classic

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Z0RneK^
Membru, skill 0
Membru, skill 0
Posts: 8
Joined: 29 Nov 2017, 18:59
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 5.154.174.158:27015
SteamID: bromstorm200
Fond eXtream: 0
Contact:

29 Dec 2017, 00:20

Doresc un plugin de vip care sa contina !
Din Prima runda Deagle + Grenazi
dupa a 3 runda !
AKA + Deagle
M4a1 + Deagle
x2 jump
100 hp + 100 ap
sa aiba /vip /vips fara /vmenu sau prostii
Sa iti arate cat dmg ai dat ! in timp real
cand intri pe sv sa iti arate Vipul %Nume% sa conectat !
Si cel mai important sa se dezactiveze automat la mapele de
awp
35hp
1hp
etc
RoyalServer 2
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5139
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

30 Dec 2017, 02:15

| Afiseaza codul
#include < amxmodx >
#include < cstrike >
#include < engine >
#include < hamsandwich >
#include < fakemeta_util >
#include < ColorChat >

#define PLUGIN "VIP"
#define VERSION "*** nu stiu :))"
#define AUTHOR "A k c 3 n 7"

new const restricted_maps[ ][ ] =
{
	"35hp",                // THANK YOU YONTU
	"31hp",                // Poti adauga tu mai multe mape dupa model
	"1hp",
	"awp_garden",
	"awp_bycastor32",
	"awp_zigzag",
	"awp_bycastor"
}

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) | (1<<CSW_USP) | (1<<CSW_DEAGLE) | (1<<CSW_P228) | (1<<CSW_ELITE) | (1<<CSW_GLOCK18) | (1<<CSW_FIVESEVEN));

enum {
    SCOREATTRIB_ARG_PLAYERID = 1,
    SCOREATTRIB_ARG_FLAGS
};

enum ( <<= 1 ) {
    SCOREATTRIB_FLAG_NONE = 0,
    SCOREATTRIB_FLAG_DEAD = 1,
    SCOREATTRIB_FLAG_BOMB,
    SCOREATTRIB_FLAG_VIP
};

#define VIP_FLAG ADMIN_LEVEL_H
#define VIP_HEALTH 100
#define VIP_ARMOR 100

new round[33] = 0;
new cvar_jump;
new jumpnum[33];
new bool: dojump[33];

public plugin_init( ) {
	
	register_plugin( PLUGIN, VERSION, AUTHOR );
	RegisterHam(Ham_Spawn, "player", "PlayerSpawnPost", 1)  
        RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1)
        cvar_jump = register_cvar("vip_jump", "1" );
}

public PlayerSpawnPost( id ) {
	
	if( is_user_alive( id ) && get_user_flags( id ) & VIP_FLAG ) {
		
		
		if( round[id] >= 3 ) 
		{	
                        drop_wpn(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 );
		}    
                round[id]++
	}
	return PLUGIN_CONTINUE;
}

public client_putinserver( id ) {
 
       new map_name[32], i;
       get_mapname(map_name, charsmax(map_name));
	
       for(i = 0; i < sizeof(restricted_maps); i++)
       {
		if(equali(map_name, restricted_maps)) 
		{
			remove_user_flags(id, VIP_FLAG);
		}
       }

       if(is_user_alive(id) && get_user_flags(id) & VIP_FLAG )
             return;

       new Name[32];
       get_user_name(id, Name, sizeof ( Name ) -1 );
       ColorChat(0, GREEN, "^x04 %s^x03 VIP-ul^x03 %s^x03 s-a conectat", Name);

}

public PlayerSpawn( id ) {
	
	if( is_user_alive( id ) && get_user_flags( id ) & VIP_FLAG ) {
		
		fm_set_user_health(id, get_user_health( id ) + VIP_HEALTH );
		fm_set_user_armor(id, get_user_armor( id ) + VIP_ARMOR );
	}
}

drop_wpn(id)
{
	static weapons[32], num;
	get_user_weapons(id, weapons, num);

	for (new i = 0; i < num; i++)
	{
		if (WEAPON_BITSUM & (1<<weapons))
		{
			static wname[32];
			get_weaponname(weapons, wname, sizeof wname - 1);

			engclient_cmd(id, "drop", wname);
		}
	}
}

public MessageScoreAttrib(iMsgId, iDest, iReceiver)
{
	new iPlayer = get_msg_arg_int(SCOREATTRIB_ARG_PLAYERID);
	
	if(get_user_flags(iPlayer) & VIP_FLAG )
		set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP);
}

public client_PreThink( id )
{
	if(!is_user_alive( id ) ) 
		return PLUGIN_CONTINUE;

	new BUTON = get_user_button(id)
	new OLDBUTON = get_user_oldbutton(id)
	new JUMP_VIP = get_pcvar_num(cvar_jump) 

	if((BUTON & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(OLDBUTON & IN_JUMP))
	{
		if(((get_user_flags(id) & VIP_FLAG) && (jumpnum[id] < JUMP_VIP)))
		{
			dojump[id] = true
			jumpnum[id]++
		}
	}

	if((BUTON & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
	{
		jumpnum[id] = 0
	}

	return PLUGIN_CONTINUE;
}

public client_PostThink(id) 
{
	if(!is_user_alive(id)) 
		return PLUGIN_CONTINUE;

	if(dojump[id] == true)
	{
		new Float: velocity[3]	
		entity_get_vector(id, EV_VEC_velocity, velocity)
		velocity[2] = random_float(265.0, 285.0)
		entity_set_vector(id, EV_VEC_velocity, velocity)
		dojump[id] = false
	}
	return PLUGIN_CONTINUE;
}
la partea cu /vip nu stiu exact la ce te-ai referit, iar pentru bullet damage poti pune pluginul separat si il pui pe flag
User avatar
Z0RneK^
Membru, skill 0
Membru, skill 0
Posts: 8
Joined: 29 Nov 2017, 18:59
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 5.154.174.158:27015
SteamID: bromstorm200
Fond eXtream: 0
Contact:

30 Dec 2017, 15:56

Nu e ceea ce am cerut am zis menu vip nu am
Arme doar aka si m4a1
deagle din prima runda si doar 100 hp si 100 ap + x2 jump
mie imi da pluginu tau 200 viata si arme random !
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5139
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

02 Jan 2018, 15:41

daca nu stiti sa va exprimati frate eu de unde sa stiu ce d.r.q vreti?
uite ti l-am facut cum ai cerut
| Afiseaza codul
#include < amxmodx >
#include < cstrike >
#include < engine >
#include < hamsandwich >
#include < fakemeta_util >
#include < ColorChat >

#define PLUGIN "VIP"
#define VERSION "nu stiu :))"
#define AUTHOR "A k c 3 n 7"

new const restricted_maps[ ][ ] =
{
	"35hp",                // THANK YOU YONTU
	"31hp",                // Poti adauga tu mai multe mape dupa model
	"1hp",                 // Putin asa de plictiseala https://www.youtube.com/watch?v=uv-VWTm0IuY
       	"awp_garden",
	"awp_bycastor32",
	"awp_zigzag",
	"awp_bycastor"
}

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
}

#define VIP_FLAG ADMIN_LEVEL_H

new round[33] = 0;
new cvar_jump
new jumpnum[33]
new bool: dojump[33]

public plugin_init( ) {
	
	register_plugin( PLUGIN, VERSION, AUTHOR )  
        RegisterHam(Ham_Spawn, "player", "PlayerSpawn", 1)
        cvar_jump = register_cvar("vip_jump", "1" )
}

public ShowMenu( id )
{
        new menu = menu_create( "VIP MENU", "menu_handler" )

        menu_additem( menu, "M4A1", "", 0, ADMIN_LEVEL_H )
        menu_additem( menu, "AK47", "", 0, ADMIN_LEVEL_H )

        menu_setprop( menu, MPROP_EXIT, MEXIT_ALL )      
        menu_display( id, menu, 0 )
} 

public client_putinserver( id ) {
 
       new map_name[32], i
       get_mapname(map_name, charsmax(map_name))
	
       for(i = 0; i < sizeof(restricted_maps); i++)
       {
		if(equali(map_name, restricted_maps)) 
		{
			remove_user_flags(id, VIP_FLAG)
		}
       }

       if(is_user_alive(id) && get_user_flags(id) & VIP_FLAG )
             return

       new Name[32]
       get_user_name(id, Name, sizeof ( Name ) -1 )
       ColorChat(0, GREEN, "^x04 %s^x03 VIP-ul^x03 %s^x03 s-a conectat", Name)

}

public PlayerSpawn( id ) {
	
	if( is_user_alive( id ) && get_user_flags( id ) & VIP_FLAG ) {
		
		if( round[id] == 1 ) 
		{    
			fm_give_item(id, "weapon_deagle")
                        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
			
		}
		if( round[id] >= 3 ) 
		{
			ShowMenu( id )       
		}
		else
		{
			round[id]++
		}
	}
}
 
public menu_handler( id, menu, item )
{
	switch( item )
	{
		case 0:
		{
			drop_wpn(id)
			fm_give_item(id, "weapon_m4a1" )
			cs_set_user_bpammo(id, CSW_M4A1, 90 )
		}
		case 1:
		{
			drop_wpn(id)
			fm_give_item(id, "weapon_ak47" )
			cs_set_user_bpammo(id, CSW_AK47, 90 )	
		}	
	}
	
	menu_destroy( menu )
	return PLUGIN_HANDLED
}

drop_wpn(id)
{
	static weapons[32], num 
	get_user_weapons(id, weapons, num)

	for (new i = 0; i < num; i++)
	{
		if (WEAPON_BITSUM & (1<<weapons))
		{
			static wname[32] 
			get_weaponname(weapons, wname, sizeof wname - 1)

			engclient_cmd(id, "drop", wname)
		}
	}
}

public MessageScoreAttrib(iMsgId, iDest, iReceiver)
{
	new iPlayer = get_msg_arg_int(SCOREATTRIB_ARG_PLAYERID)
	
	if(get_user_flags(iPlayer) & VIP_FLAG )
		set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
}

public client_PreThink( id )
{
	if(!is_user_alive( id ) ) 
		return PLUGIN_CONTINUE

	new BUTON = get_user_button(id)
	new OLDBUTON = get_user_oldbutton(id)
	new JUMP_VIP = get_pcvar_num(cvar_jump) 

	if((BUTON & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(OLDBUTON & IN_JUMP))
	{
		if(((get_user_flags(id) & VIP_FLAG) && (jumpnum[id] < JUMP_VIP)))
		{
			dojump[id] = true
			jumpnum[id]++
		}
	}

	if((BUTON & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
	{
		jumpnum[id] = 0
	}

	return PLUGIN_CONTINUE
}

public client_PostThink(id) 
{
	if(!is_user_alive(id)) 
		return PLUGIN_CONTINUE

	if(dojump[id] == true)
	{
		new Float: velocity[3]	
		entity_get_vector(id, EV_VEC_velocity, velocity)
		velocity[2] = random_float(265.0, 285.0)
		entity_set_vector(id, EV_VEC_velocity, velocity)
		dojump[id] = false
	}
	return PLUGIN_CONTINUE
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Yandex [Bot] and 34 guests