Cerere Plugin 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 .
Post Reply
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 06 Oct 2018, 13:41
Detinator Steam: Da
CS Status: Just a simple guy :P
Detinator server CS: As vrea eu xD
SteamID: Da
Fond eXtream: 0
Location: Constanta
Has thanked: 32 times
Contact:

15 Jan 2020, 21:20

Plugin Cerut: VIP System
Descriere (adica ce face el mai exact): In a 3-a runda vipul sa primeasca meniul automat ,sa primeasca hp /ap pe kill /bmb /defuse /lama ; bani pe kill / bmb /defuse /lama ! As vrea ca meniul sa fie dezactivat pe anumite harti ! Hartile pe care meniul sa nu se deschida sa se adauge din fisierul hartiblocate.ini ! Meniul de arme sa fie urmatorul :

\rVip Menu [Server.ro]:
[1] AK47 +DEAGLE
[2] M4A1 + DEAGLE
[3] AWP + DEAGLE

In fiecare runda sa primeasca 100 FULL ARMURA si 1he si 2fb
Sa existe cvaruri pentru hp /ap pe kill /bmb /defuse /lama ; bani pe kill / bmb /defuse /lama si cvaruri pentru maxhp si maxarmor

Serverul impune conditii strict HLDS/REHLDS?: hlds
Ai cautat pluginul?(daca da, precizeaza cum): l-am cautat dar nu gasesc cum vreau eu
Necesita mod special?: e pentru classic
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 06 Oct 2018, 13:41
Detinator Steam: Da
CS Status: Just a simple guy :P
Detinator server CS: As vrea eu xD
SteamID: Da
Fond eXtream: 0
Location: Constanta
Has thanked: 32 times
Contact:

20 Jan 2020, 15:01

bump
User avatar
1TAP GOD
Membru, skill +1
Membru, skill +1
Posts: 144
Joined: 02 Sep 2018, 23:20
Detinator Steam: Da
CS Status: Be The Best And Fuck The Rest
SteamID: assasinssmdfk
Fond eXtream: 0
Has thanked: 16 times
Been thanked: 10 times
Contact:

20 Jan 2020, 17:07

pui numele mapelor pe care nu este valabil meniu de arme in

Code: Select all

new const RMaps[][] = 
{
	"35hp",
	"35hp_2",
	"31hp",
	"1hp",
	'awp",
	"100hp"
};
Nu l-am testat :

Code: Select all

#include <amxmodx> 
#include <amxmisc>
#include <cstrike> 
#include <engine>
#include <fakemeta>
#include <hamsandwich> 
#include <csx>
#include <fakemeta_util> 
#include <csstats>
#include <fun>

#define VIP_LEVEL_ACCES ADMIN_LEVEL_H
new round[33] = 0;

enum _:Weapons
{
	WeapName[200],
	WeaponID[32],
	BpAmmo
}
new const VipWeapons[][Weapons] =
{
	{ "AK47 \d+ \wDeagle \d+ \wGrenades", "weapon_ak47",250 },
	{ "M4A1 \d+ \wDeagle \d+ \wGrenades","weapon_m4a1",250 },
	{ "AWP \d+ \wDeagle \d+ \wGrenades", "weapon_awp",250 }
}
////////////Devil aKa. StefaN@CSX////////////////////
new const RMaps[][] = 
{
	"35hp",
	"35hp_2",
	"31hp",
	"1hp",
	"awp",
	"100hp"
};
///////////////////////////////////////////////////
new PcvarHPGive,PcvarAPGive,PcvarMoneyGive,
PcvarMaxRegenHP,PcvarMaxRegenAP;
new bool:HasC4[33]

public plugin_init()  
{ 
	register_plugin
	(
	.plugin_name="VIP N3v3rM1nd"    ,
	.version="1.0"        ,
	.author="*"
	)	
	PcvarHPGive = register_cvar("vip_killhpbonus","10")
	PcvarAPGive = register_cvar("vip_killapbonus","10")
	PcvarMoneyGive = register_cvar("vip_vipmoneybonus","15")
	PcvarMaxRegenHP = register_cvar("vip_hpregenmax","120")
	PcvarMaxRegenAP = register_cvar("vip_hpregenadd","150")

	RegisterHam(Ham_Killed,"player","fw_Ham_Player_Killed",1)
	RegisterHam(Ham_Spawn,"player","fwSpawn",1) 
} 

public client_putinserver(id) 
{	
	if(get_user_flags(id) & VIP_LEVEL_ACCES)
	{
		
		round[id] = 0;
	}	
}

public client_disconnect(id)
{
	if(get_user_flags(id) & VIP_LEVEL_ACCES)
	{
		round[id] = 0;
	}
}


public VipWeaponsMenu(id)
{
	new szMenuW = menu_create("\rVip Menu[SERVER.RO]","vip_weapons_handler");
	
	for ( new i; i < sizeof VipWeapons; i++ )
		menu_additem( szMenuW, VipWeapons[ i ][ WeapName ] )
		
	menu_display(id,szMenuW)
}
public vip_weapons_handler(id,menu,item)
{
	if(item == MENU_EXIT || !is_user_alive(id) || get_user_flags(id) & VIP_LEVEL_ACCES)
	{
		menu_destroy(menu)
		return PLUGIN_HANDLED
	}
	{ 
	if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
	HasC4[id] = true;
	else
	HasC4[id] = false;
	
	strip_user_weapons(id)
		
	give_item(id,"weapon_knife")
	give_item(id,"weapon_hegrenade")
	give_item(id,"weapon_flashbang")
		
	cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
		
	give_item( id, VipWeapons[ item ][ WeaponID ] )
	cs_set_user_bpammo( id, get_weaponid( VipWeapons[ item ][ WeaponID ] ), VipWeapons[ item ][ BpAmmo ] )
		
	give_item(id,"weapon_deagle")
	cs_set_user_bpammo(id,CSW_DEAGLE,250)
	if(get_user_team(id) == 2)
	give_item(id, "item_thighpack")
	if (HasC4[id])
			{
				give_item(id, "weapon_c4");
				cs_set_user_plant( id );
			}
			}
	
	return PLUGIN_HANDLED
}

public fwSpawn(id) 
{ 
	if(!is_user_alive(id)) 
		return HAM_IGNORED 
	new MapName[32]; 
	for (new i = 0; i < sizeof (RMaps); i ++)
	{
	if(equali (MapName, RMaps[i]))
		{
			return 0;
		}
	else
	if(get_user_flags(id) & VIP_LEVEL_ACCES)
	{	
		round[id]++
		
		if(round[id]>=3)
		VipWeaponsMenu(id)
		
		cs_set_user_armor(id,get_pcvar_num(PcvarMaxRegenAP),CsArmorType:2)
		set_user_health(id,get_pcvar_num(PcvarMaxRegenHP))
			
		if(get_user_team(id) == 2)
		give_item(id, "item_thighpack")
	}
}
	return HAM_IGNORED 
} 
public fw_Ham_Player_Killed(iVictim,iAttacker)
{
	if(!iVictim || !iAttacker && !is_user_alive(iVictim) || !is_user_alive(iAttacker))
		return HAM_IGNORED
	if(get_user_flags(iAttacker) & VIP_LEVEL_ACCES)
	{
	set_user_health(iAttacker,get_user_health(iAttacker) + get_pcvar_num(PcvarHPGive))
	if(get_user_health(iAttacker >= get_pcvar_num(PcvarMaxRegenHP)))
	{
		set_user_health(iAttacker,get_pcvar_num(PcvarMaxRegenHP))
		return PLUGIN_HANDLED
	}
	else
	{
		set_user_health(iAttacker,get_user_health(iAttacker) + get_pcvar_num(PcvarHPGive))
	}
	if(get_user_armor(iAttacker) >= get_pcvar_num(PcvarMaxRegenAP))
	{
		set_user_health(iAttacker,get_pcvar_num(PcvarMaxRegenAP))
		return PLUGIN_HANDLED
	}
	else
	{
		set_user_health(iAttacker,get_user_health(iAttacker) + get_pcvar_num(PcvarAPGive))
	}
		cs_set_user_money(iAttacker,cs_get_user_money(iAttacker)+ get_pcvar_num(PcvarMoneyGive))
	}
	return HAM_IGNORED
}
public bomb_planted(id)
{
	if(get_user_flags(id) &  VIP_LEVEL_ACCES)
	{
		
		cs_set_user_money(id,cs_get_user_money(id)+ get_pcvar_num(PcvarMoneyGive))
	}
}

public bomb_defused(id)
{
	if(get_user_flags(id) & VIP_LEVEL_ACCES)
	{
		
		cs_set_user_money(id,cs_get_user_money(id)+ get_pcvar_num(PcvarMoneyGive))
	}
}
stock color_chat( id, const szStr[], any:... ) 
{
	new szMsg[ 191 ], iPlayers[ 32 ], iCount = 1
	
	vformat( szMsg, sizeof szMsg - 1, szStr, 3 )
	
	replace_all( szMsg, 190, "!g", "^4" )
	replace_all( szMsg, 190, "!y", "^1" )
	replace_all( szMsg, 190, "!t", "^3" )
	
	if( id )
		iPlayers[ 0 ] = id

	else 
		get_players( iPlayers, iCount, "ch" )
	
	for( new i = 0 ; i < iCount ; i++ )
	{
		if(is_user_connected( iPlayers[ i ] ) )
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayers[ i ] )
			write_byte( iPlayers[ i ] )
			write_string( szMsg )
			message_end( )
		}
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Last edited by L E V I N on 21 Jan 2020, 18:52, edited 2 times in total.
Reason: dacă iei plugine de pe net și le combini nu ești autor
ImageImage
ImageImage
lăsați un comentariu pe profil cu motivul cereri,altfel nu accept! :lips_kiss:
:face_with_monocle: https://imgur.com/a/6bhYDKT :face_with_monocle:
Post Reply

Return to “Cereri”

  • Information