Cerere modificare plugin

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
N3VER
Membru nou
Membru nou
Posts: 4
Joined: 23 Dec 2019, 16:52
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time

28 Dec 2019, 03:00

Poate cineva sa imi adauge in plugin sa primeasca VIP ul armura mare de la 1 runda inclusiv si HP maxim la vip sa nu treaca de 100 ?

SMA :

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "da"
#define VERSION "6.9"
#define AUTHOR "da"

new Menu, HSHealth, KillHealth, Round;

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_logevent ( "RoundStart", 2, "1=Round_Start" );

RegisterHam ( Ham_Spawn, "player", "VIP_Spawn", 1 );
register_event ( "DeathMsg", "ev_DeathMsg", "a" );

HSHealth = register_cvar ( "vm_hs_health", "40" );
KillHealth = register_cvar ( "vm_kill_health", "15" );
}

public RoundStart (id)
Round += 1

public VIP_Spawn ( id )
{
if ( !is_user_connected ( id ) || !is_user_vip ( id ) )
return HAM_HANDLED;

give_item ( id, "weapon_hegrenade" );
give_item ( id, "weapon_flashbang" );
cs_set_user_bpammo ( id, CSW_FLASHBANG, 2 );

if ( Round >= 2 )
{
Menu = menu_create ( "[BLACKGAMES] Arme VIP", "GiveWeapons" );

menu_additem ( Menu, "M4A1 + DEAGLE", "1", 0 );
menu_additem ( Menu, "AK47 + DEAGLE", "2", 0 );
menu_additem ( Menu, "AWP + DEAGLE", "3", 0 );

menu_setprop ( Menu, MPROP_EXIT, MEXIT_ALL );

menu_display ( id, Menu, 0 );
}
return HAM_IGNORED;
}

public GiveWeapons ( id, Menu, item )
{
if ( !is_user_alive ( id ) || !is_user_vip ( id ) )
return PLUGIN_HANDLED;

if ( item == MENU_EXIT )
return PLUGIN_HANDLED;

new data [6], iName [64];
new access, callback;

menu_item_getinfo ( Menu, item, access, data,5, iName, 63, callback);

new key = str_to_num(data);

switch(key)
{
case 1:
{
give_item ( id, "weapon_m4a1" );
cs_set_user_bpammo ( id, CSW_M4A1, 90 );

give_item ( id, "weapon_deagle" );
cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );

ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tM4A1 + DEAGLE + GRENAZII !n!" );
}
case 2:
{
give_item ( id, "weapon_ak47" );
cs_set_user_bpammo ( id, CSW_AK47, 90 );

give_item ( id, "weapon_deagle" );
cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );

ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tAK47 + DEAGLE + GRENAZII !n!" );
}
case 3:
{
give_item ( id, "weapon_awp" );
cs_set_user_bpammo ( id, CSW_AWP, 30 );

give_item ( id, "weapon_deagle" );
cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );

ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tAWP + DEAGLE + GRENAZII !n!" );
}
}
menu_destroy ( Menu );
return PLUGIN_HANDLED;
}

public ev_DeathMsg ( )
{
new Killer = read_data ( 1 );
new Victim = read_data ( 2 );
new HS = read_data ( 3 );

if ( Killer == Victim || !is_user_connected ( Victim ) || !is_user_alive ( Killer ) || !is_user_vip ( Killer ) )
return PLUGIN_HANDLED;

if ( HS )
{
new HSHP = get_pcvar_num ( HSHealth );
new CurrentHealth = get_user_health ( Killer );
set_user_health ( Killer, CurrentHealth + HSHP );
}
else
{
new KillHP = get_pcvar_num ( KillHealth );
new CurrentHealth = get_user_health ( Killer );
set_user_health ( Killer, CurrentHealth + KillHP );
}
return PLUGIN_HANDLED;
}

stock bool: is_user_vip ( id )
{
if ( get_user_flags ( id ) & ADMIN_LEVEL_H )
return true;
return false;
}

stock ColorChat(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[320]
vformat(msg, 190, input, 3)

replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")

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()
}
}
}
}
eXtreamSHOP
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2622
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 38 times
Been thanked: 402 times
Contact:

28 Dec 2019, 13:40

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

new Menu, HSHealth, KillHealth, Round, MaxKillHealth;

public plugin_init() {
	register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
	
	RegisterHam ( Ham_Spawn, "player", "VIP_Spawn", 1 );
	register_event ( "DeathMsg", "ev_DeathMsg", "a" );
	
	HSHealth = register_cvar ( "vm_hs_health", "40" );
	KillHealth = register_cvar ( "vm_kill_health", "15" );
	MaxKillHealth= register_cvar ( "vm_mk_health", "100" );
}

public RoundStart ()	Round += 1

public VIP_Spawn ( id )
{
	if ( !is_user_connected ( id ) || !is_user_vip ( id ) )	return HAM_HANDLED;
	
	give_item ( id, "weapon_hegrenade" );
	give_item ( id, "weapon_flashbang" );
	cs_set_user_bpammo ( id, CSW_FLASHBANG, 2 );
	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
	
	if ( Round >= 2 )
	{
		Menu = menu_create ( "[BLACKGAMES] Arme VIP", "GiveWeapons" );
		
		menu_additem ( Menu, "M4A1 + DEAGLE", "1", 0 );
		menu_additem ( Menu, "AK47 + DEAGLE", "2", 0 );
		menu_additem ( Menu, "AWP + DEAGLE", "3", 0 );
		
		menu_setprop ( Menu, MPROP_EXIT, MEXIT_ALL );
		
		menu_display ( id, Menu, 0 );
	}
	return HAM_IGNORED;
}

public GiveWeapons ( id, Menu, item )
{
	if ( !is_user_alive ( id ) || !is_user_vip ( id ) )	return PLUGIN_HANDLED;
	
	if ( item == MENU_EXIT )	return PLUGIN_HANDLED;
	
	new data [6], iName [64];
	new access, callback;
	
	menu_item_getinfo ( Menu, item, access, data,5, iName, 63, callback);
	
	new key = str_to_num(data);
	
	switch(key)
	{
		case 1:
		{
			give_item ( id, "weapon_m4a1" );
			cs_set_user_bpammo ( id, CSW_M4A1, 90 );
			
			give_item ( id, "weapon_deagle" );
			cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );
			
			ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tM4A1 + DEAGLE + GRENAZII !n!" );
		}
		case 2:
		{
			give_item ( id, "weapon_ak47" );
			cs_set_user_bpammo ( id, CSW_AK47, 90 );
			
			give_item ( id, "weapon_deagle" );
			cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );
			
			ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tAK47 + DEAGLE + GRENAZII !n!" );
		}
		case 3:
		{
			give_item ( id, "weapon_awp" );
			cs_set_user_bpammo ( id, CSW_AWP, 30 );
			
			give_item ( id, "weapon_deagle" );
			cs_set_user_bpammo ( id, CSW_DEAGLE, 35 );
			
			ColorChat ( id, "!n[!gVIP BLACKGAMES!n] Ai primit !tAWP + DEAGLE + GRENAZII !n!" );
		}
	}
	menu_destroy ( Menu );
	return PLUGIN_HANDLED;
}

public ev_DeathMsg ( )
{
	new Killer = read_data ( 1 ),Victim = read_data ( 2 ),HS = read_data ( 3 )
	if ( Killer == Victim || !is_user_connected ( Victim ) || !is_user_alive ( Killer ) || !is_user_vip ( Killer ) )	return PLUGIN_HANDLED;
	new CurrentHealth = get_user_health ( Killer )
	
	if ( HS )
	{
		if((CurrentHealth + get_pcvar_num ( HSHealth ))<=get_pcvar_num(MaxKillHealth))	set_user_health ( Killer, min(CurrentHealth + get_pcvar_num ( HSHealth ),get_pcvar_num(MaxKillHealth)) );
		else set_user_health(Killer,get_pcvar_num(MaxKillHealth))
	}
	else
	{
		if((CurrentHealth + get_pcvar_num ( KillHealth ))<=get_pcvar_num(MaxKillHealth))	set_user_health ( Killer, min(CurrentHealth + get_pcvar_num ( KillHealth ),get_pcvar_num(MaxKillHealth)) );
		else set_user_health(Killer,get_pcvar_num(MaxKillHealth))
	}
	return PLUGIN_HANDLED;
}

stock bool: is_user_vip ( id )
{
	if ( get_user_flags ( id ) & ADMIN_LEVEL_H )	return true;
	return false;
}

stock ColorChat(const id, const input[], any:...)
{
	new count = 1, players[32]
	static msg[320]
	vformat(msg, 190, input, 3)
	
	replace_all(msg, 190, "!g", "^4")
	replace_all(msg, 190, "!n", "^1")
	replace_all(msg, 190, "!t", "^3")
	replace_all(msg, 190, "!t2", "^0")
	
	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()
		}
	}
}
Nu fac nimic contra cost! Faceți cerere bine detaliată aici, pe forum. Nu-mi mai dați add pe Steam doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz.
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici.
N3VER
Membru nou
Membru nou
Posts: 4
Joined: 23 Dec 2019, 16:52
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time

28 Dec 2019, 15:35

Mersii mult , si inca o chesti daca mai poti aduca ca vip ul sa aibe 2 sarituri si sa arete damage-ul dat la jucatorii da asta doar va vip , si sa le adaugi tot pe sma-ul care mi l-ai dat tu , raman dator .
mariusexeqt
Membru, skill 0
Membru, skill 0
Posts: 31
Joined: 01 Jan 2020, 22:55
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.LALEAGANE.RO
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 1 time

Yesterday, 13:09

#include <amxmodx>
#include <amxmisc>
#include <engine>

#define VIP_FLAG ADMIN_LEVEL_H //modifici tu flagul.. Il pui pe cel de la vip

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


public plugin_init()
{
register_plugin("MultiJump", "1.0", "twistedeuphoria")

cvar_vip_jumps = register_cvar("vip_max_jumps", "1")

}


public client_PreThink(id)
{
if(!is_user_alive(id))
{
return PLUGIN_HANDLED;
}

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(get_user_flags(id) & VIP_FLAG)
{
if(jumpnum[id] < get_pcvar_num(cvar_vip_jumps))
{
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_user_flags(id) & VIP_FLAG)
{
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;



Si cel de bullet damage.. Modifici flagurile

#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

#define PLUGIN "Bullet Damage VIP"
#define VERSION "1.0"
#define AUTHOR "Cinek"

new g_type , g_enabled, g_recieved, bool:g_showrecieved, g_hudmsg1, g_hudmsg2

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")
register_event("HLTV", "on_new_round", "a", "1=0", "2=0")

g_type = register_cvar("amx_bulletdamage","1")
g_recieved = register_cvar("amx_bulletdamage_recieved","1")

g_hudmsg1 = CreateHudSyncObj()
g_hudmsg2 = CreateHudSyncObj()
}

public on_new_round()
{
g_enabled = get_pcvar_num(g_type)
if(get_pcvar_num(g_recieved))
g_showrecieved = true
}

public on_damage(id)
{
if(g_enabled && get_user_flags(id) && ADMIN_RESERVATION )
{
static attacker; attacker = get_user_attacker(id)
static damage; damage = read_data(2)
if(g_showrecieved)
{
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
ShowSyncHudMsg(id, g_hudmsg2, "%i^n", damage)
}
if(is_user_connected(attacker))
{
if( get_user_flags(attacker) & ADMIN_RESERVATION )
{
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage)
}

}
}
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests