[Cerere] VIP

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 .
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

11 Dec 2013, 20:51

Vreau si eu un plugin VIP, care sa aiba aceste avantaje:
- Grenazi + flash + smoke
- HP17 cand face kill si 27 cand da HS
- Sa aibe acces la comenzile [ SLAP / SLAY / GAG / BAN / SAY / CSAY / PSAY / ]
- Sa aiba speed mai mare de 2 ori de cat cel normal cand pune pe lama
- Sa apara VIP in TABSCORE
- Sa aiba x3jump
- Cand da HS sa apara la scor +2 kill
- Si cand scrie /vips sa apara aceste puteti in html
ATENTIE vreau si sursa sma.
Image
Rapidserver
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

11 Dec 2013, 20:56

Hai ca ma apuc sa ti-l fac , revin cu edit ..
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

11 Dec 2013, 21:01

GhosT *** wrote:Hai ca ma apuc sa ti-l fac , revin cu edit ..
Bine astept.
Image
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

11 Dec 2013, 21:05

Amatorul # wrote:
GhosT *** wrote:Hai ca ma apuc sa ti-l fac , revin cu edit ..
Bine astept.
O intrebare .. Nade sa fie la spawn?
Si inca una , cu comanda /vips sa vezi vipi online sau sa iti arate un motd?
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

11 Dec 2013, 21:11

Este respawn serverul
Da vreau sa apara in motd
Image
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

13 Dec 2013, 20:23

Mai imi faci acest plugin ?
Image
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

13 Dec 2013, 20:54

| Afiseaza codul
/* Credits

	GhosT *** - Crearea pluginului
	twistedeuphoria - Cod pentru Multi Jumps
	Dunno - Primul creator al "sistemului de add HP" daca ii pot spune asa.
										*/

//include

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>
#include <colorchat>
#include <hamsandwich>
#include <engine>
#include <fun>

// define

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "GhosT"

#define VIP_LEVEL 	read_flags("edit")
#define player_is_vip(%1)	(get_user_flags(%1) & VIP_LEVEL)

new jumpnum[33] = 0
new bool:dojump[33] = false

new nKiller
new nKiller_hp
new nHp_add
new nHp_max
new kill, kill_hs, max_hp;

//public plugin_init(id)

public plugin_init()
{
	//register_plugin
	register_plugin(PLUGIN, VERSION, AUTHOR)
	//Other
	RegisterHam(Ham_Spawn, "player", "vip_spawn", 1);
	register_message(get_user_msgid("ScoreAttrib"),"vip_scoreboard");
	register_event("DeathMsg", "hp_add", "a", "1>0")
	register_event("CurWeapon", "CurrWeap", "be", "1=1")
	
	//Cvars
	register_cvar("amx_maxjumps","2")
	register_cvar("amx_mjadminonly","1")
	kill = register_cvar("kill_hp", "17")
	kill_hs = register_cvar("kill_hs_hp", "27")
	max_hp = register_cvar("max_hp_add", "150")
	
	register_clcmd("say /vip", "vip")
}

// Other publics
public client_putinserver(id)
{
	jumpnum[id] = 0
	dojump[id] = false
}
public client_connect(id)
{
	client_putinserver(id)
	if(player_is_vip(id))
	{
		new name[33];
		get_user_name(id, name, 33)
		ColorChat(id, GREEN, "[VIP]^x03 VIP %s se connecteaza pe server !", name)
	}
}
public client_disconnect(id)
{
	client_putinserver(id)
	new name[33];
	get_user_name(id, name, 33)
	ColorChat(id, GREEN, "[VIP]^x03 VIP %s a iesit de pe server !", name)
}

public vip_spawn(id)
{
	if(player_is_vip(id))
	{
		fm_give_item(id, "weapon_hegrenade")
		fm_give_item(id, "weapon_flashbang")
		fm_give_item(id, "weapon_flashbang")
		fm_give_item(id, "weapon_smokegrenade")
	}
}
public hp_add(id)
{
	   nKiller = read_data(1)
	   
	   if ( (read_data(3) == 1) && (read_data(5) == 0) )
	   {
	      nHp_add = get_pcvar_num (kill)
	      set_user_frags(id, get_user_frags(id) + 1)
	   }
	   else
	   nHp_add = get_pcvar_num (kill_hs)
	   nHp_max = get_pcvar_num (max_hp)
	   set_user_frags(id, get_user_frags(id) + 2)
	   
	   if(!(get_user_flags(nKiller) & VIP_LEVEL))
	   return;
	
	   nKiller_hp = get_user_health(nKiller)
	   nKiller_hp += nHp_add
	   
	   if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
	   set_user_health(nKiller, nKiller_hp)
	   
	   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
	   write_short(1<<10)
	   write_short(1<<10)
	   write_short(0x0000)
	   write_byte(0)
	   write_byte(0)
	   write_byte(200)
	   write_byte(75)
	   message_end()
}
public client_PreThink(id)
{
	if(!is_user_alive(id)) return PLUGIN_CONTINUE
	if(get_cvar_num("amx_mjadminonly") && (!access(id, VIP_LEVEL))) return PLUGIN_CONTINUE
	new nbut = get_user_button(id)
	new obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("amx_maxjumps"))
		{
			dojump[id] = true
			jumpnum[id]++
			return PLUGIN_CONTINUE
		}
	}
	if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
	{
		jumpnum[id] = 0
		return PLUGIN_CONTINUE
	}
	return PLUGIN_CONTINUE
}

public client_PostThink(id)
{
	if(!is_user_alive(id)) return PLUGIN_CONTINUE
	if(get_cvar_num("amx_mjadminonly") && (!access(id, VIP_LEVEL))) 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
	}
	return PLUGIN_CONTINUE
}

public vip(id)
{
	show_motd(id, "addons/amxmodx/configs/vip.html")
}
public CurrWeap(id)
{
	if(get_user_weapon(id) == CSW_KNIFE)
	{
		set_user_maxspeed(id, 600.0)
	}
}
public vip_scoreboard(id, const MsgId, const MsgType, const MsgDest) 
{
	static id;
	id = get_msg_arg_int(1);
	if(player_is_vip(id))
	set_msg_arg_int(2, ARG_BYTE, (1 << 2 ));
}
Flag vip "edit"
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

13 Dec 2013, 20:56

Are si speed cand pui pe lama ?
Are si xjump3 ?
Image
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

13 Dec 2013, 21:04

L-ai testat sa vezi , eu le-am pus dar nu sunt sigur ca merg , deci testeaza-l .
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

13 Dec 2013, 21:07

Au toti speed pe server si vreau sa fie separat gradul de vip pentru ca cine are admin are automat si vip...
Image
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

13 Dec 2013, 21:15

| Afiseaza codul
/* Credits

	GhosT *** - Crearea pluginului
	twistedeuphoria - Cod pentru Multi Jumps
	Dunno - Primul creator al "sistemului de add HP" daca ii pot spune asa.
										*/

//include

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>
#include <colorchat>
#include <hamsandwich>
#include <engine>
#include <fun>

// define

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "GhosT"

#define VIP_LEVEL 	ADMIN_LEVEL_H
#define player_is_vip(%1)	(get_user_flags(%1) & VIP_LEVEL)

new jumpnum[33] = 0
new bool:dojump[33] = false

new nKiller
new nKiller_hp
new nHp_add
new nHp_max
new kill, kill_hs, max_hp;

//public plugin_init(id)

public plugin_init()
{
	//register_plugin
	register_plugin(PLUGIN, VERSION, AUTHOR)
	//Other
	RegisterHam(Ham_Spawn, "player", "vip_spawn", 1);
	register_message(get_user_msgid("ScoreAttrib"),"vip_scoreboard");
	register_event("DeathMsg", "hp_add", "a", "1>0")
	register_event("CurWeapon", "CurrWeap", "be", "1=1")
	
	//Cvars
	register_cvar("amx_maxjumps","2")
	register_cvar("amx_mjadminonly","1")
	kill = register_cvar("kill_hp", "17")
	kill_hs = register_cvar("kill_hs_hp", "27")
	max_hp = register_cvar("max_hp_add", "150")
	
	register_clcmd("say /vip", "vip")
}

// Other publics
public client_putinserver(id)
{
	jumpnum[id] = 0
	dojump[id] = false
}
public client_connect(id)
{
	client_putinserver(id)
	if(player_is_vip(id))
	{
		new name[33];
		get_user_name(id, name, 33)
		ColorChat(id, GREEN, "[VIP]^x03 VIP %s se connecteaza pe server !", name)
	}
}
public client_disconnect(id)
{
	client_putinserver(id)
	new name[33];
	get_user_name(id, name, 33)
	ColorChat(id, GREEN, "[VIP]^x03 VIP %s a iesit de pe server !", name)
}

public vip_spawn(id)
{
	if(player_is_vip(id))
	{
		fm_give_item(id, "weapon_hegrenade")
		fm_give_item(id, "weapon_flashbang")
		fm_give_item(id, "weapon_flashbang")
		fm_give_item(id, "weapon_smokegrenade")
	}
}
public hp_add(id)
{
	   nKiller = read_data(1)
	   
	   if ( (read_data(3) == 1) && (read_data(5) == 0) )
	   {
	      nHp_add = get_pcvar_num (kill)
	      set_user_frags(id, get_user_frags(id) + 1)
	   }
	   else
	   nHp_add = get_pcvar_num (kill_hs)
	   nHp_max = get_pcvar_num (max_hp)
	   set_user_frags(id, get_user_frags(id) + 2)
	   
	   if(!(get_user_flags(nKiller) & VIP_LEVEL))
	   return;
	
	   nKiller_hp = get_user_health(nKiller)
	   nKiller_hp += nHp_add
	   
	   if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
	   set_user_health(nKiller, nKiller_hp)
	   
	   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
	   write_short(1<<10)
	   write_short(1<<10)
	   write_short(0x0000)
	   write_byte(0)
	   write_byte(0)
	   write_byte(200)
	   write_byte(75)
	   message_end()
}
public client_PreThink(id)
{
	if(!is_user_alive(id)) return PLUGIN_CONTINUE
	if(get_cvar_num("amx_mjadminonly") && (!access(id, VIP_LEVEL))) return PLUGIN_CONTINUE
	new nbut = get_user_button(id)
	new obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("amx_maxjumps"))
		{
			dojump[id] = true
			jumpnum[id]++
			return PLUGIN_CONTINUE
		}
	}
	if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
	{
		jumpnum[id] = 0
		return PLUGIN_CONTINUE
	}
	return PLUGIN_CONTINUE
}

public client_PostThink(id)
{
	if(!is_user_alive(id)) return PLUGIN_CONTINUE
	if(get_cvar_num("amx_mjadminonly") && (!access(id, VIP_LEVEL))) 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
	}
	return PLUGIN_CONTINUE
}

public vip(id)
{
	show_motd(id, "addons/amxmodx/configs/vip.html")
}
public CurrWeap(id)
{
	if(player_is_vip(id))
	{
		
		if(get_user_weapon(id) == CSW_KNIFE)
		{
			set_user_maxspeed(id, 600.0)
		}
	}
}
public vip_scoreboard(id, const MsgId, const MsgType, const MsgDest) 
{
	static id;
	id = get_msg_arg_int(1);
	if(player_is_vip(id))
	set_msg_arg_int(2, ARG_BYTE, (1 << 2 ));
}
User avatar
Amatorul #
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 08 Dec 2013, 12:29
Detinator Steam: Da
Detinator server CS: Da
Been thanked: 79 times
Contact:

13 Dec 2013, 21:20

Nu arata in tablist VIP si nu merge x3jump
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests