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 .
Skkyler
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 08 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

08 Dec 2013, 15:32

Salut! As dorii un plugin pentru vipmenu furien.La vip menu sa aiba:
-Set he (la fiecare 10 sec. sa primesti cate un HE)
-255hp 255AP (la fiecare spawn)
-GodMode (sa tina3sec. la fiecare 22sec)
-Teleport(sa il folosesti la fiecare 20sec.)
-No Recoil
Multumesc Anticipat! :)
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:

08 Dec 2013, 15:37

O sa incerc eu sa ti-l fac :)) ! Revin cu edit sa iti zic daca imi reuseste :D
Last edited by GhosT *** on 08 Dec 2013, 15:54, edited 2 times in total.
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2808
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 230 times
Been thanked: 128 times
Contact:

08 Dec 2013, 15:48

GhosT *** wrote:O sa incerc eu sa ti-l fac :)) ! Revin cu edit sa iti zic daca imi reuseste :D
=)))) =))) Esti bolnav?
Exista un astfel de plugin pe NET. Ce faci tu, modifici autorul? =)))
ON: Cauta pe NET ca exista. Eu nu pot sa til dau ca sunt pe Telefon.
Contact: Activitate scazuta.
User avatar
Te-am_prins2013
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 24 Sep 2013, 14:41
Detinator Steam: Da
CS Status: Nu e aim, nu e bulan, e Talentu.exe
Detinator server CS: Dr.Europacs.Ro
Has thanked: 10 times
Been thanked: 2 times
Contact:

08 Dec 2013, 15:51

nu e exact cum ai cerut
| Afiseaza codul
#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
#include < fun >
#include < xs >

#define ADMIN_VIP		ADMIN_LEVEL_H

#define TELEPORT_INTERVAL	 20.0 //float

static const PLUGIN[ ]		= "VIP Furien";
static const VERSION[ ] 		= "1.0";

static const szTag[ ]		= "[VIP]";

new Float:g_fLastUsed[ 33 ];

new g_bNoRecoil[ 33 ];
new g_bTeleport[ 33 ]

public plugin_init( ) 
{
	register_plugin( PLUGIN, VERSION, "Unhask" );
	
	register_event( "ResetHUD", "SpawnPlayer", "be" );

	register_clcmd( "say", "SayChatAnswer" );
	
	register_concmd( "+teleport", "cmdVIPTeleport" );
	register_concmd( "-teleport", "cmdVIPTeleport" );
	
	register_forward( FM_PlayerPreThink, "fwdPlayerPreThink" );
}

public SpawnPlayer( id )
{
	g_bNoRecoil[ id ] = false;
	g_bTeleport[ id ] = false;
}

public SayChatAnswer( id )
{
	new szSaid[ 132 ];
	
	read_args( szSaid, sizeof ( szSaid ) - 1 );
	remove_quotes( szSaid );
	
	if ( containi( szSaid, "/vip" ) || containi( szSaid, "/vips" ) || containi( szSaid, "/furienvip" ) )
	{
		if ( is_user_alive( id ) && get_user_flags( id ) & ADMIN_VIP )
		{
			ShowMenuVIP( id );
		}
	}
}

public ShowMenuVIP( id )
{
	new szMenu;
	
	switch ( get_user_team( id ) )
	{
		case 1:
		{
			szMenu = menu_create( "Furien VIP", "iContent" );
			
			menu_additem( szMenu, "255HP & 255AP", 	"1" );
			menu_additem( szMenu, "He Grenade", 	"2" );
		}
		
		case 2:
		{
			szMenu = menu_create( "AntiFurien VIP", "iContent" );
			
			menu_additem( szMenu, "255HP & 255AP", 	"1" );
			menu_additem( szMenu, "He Grenade", 	"2" );
			menu_additem( szMenu, "NoRecoil", 	"3" );
			menu_additem( szMenu, "Teleport", 	"4" );
		}
	}
	
	menu_display( id, szMenu, 0 );
	
	return 0;
}

public iContent( id, szMenu, Item )
{
	if ( Item == MENU_EXIT )
	{
		menu_destroy( szMenu )
		return 1;
	}
	
	new iData[ 9 ], szName[ 32 ];
	new iAccess, iCallback;
	
	menu_item_getinfo( szMenu, Item, iAccess, iData, sizeof ( iData ) - 1, szName, sizeof ( szName ) - 1, iCallback );
	
	new iKeys = str_to_num( iData );
	
	switch( get_user_team( id ) )
	{
		case 1:
		{
			switch( iKeys )
			{
				case 1:
				{
					set_user_health( id, 255 );
					set_user_armor( id, 255 );
					
					client_print( id, print_center, "Ai primit 255HP & 255AP!" );
				}
				case 2:
				{
					if ( user_has_weapon( id, CSW_HEGRENADE ) )
					{
						client_print( id, print_center, "Ai deja o Grenada HE!" );
						
					} else {
						
						give_item( id, "weapon_hegrenade" );
						
						client_print( id, print_center, "Ai primit o Grenada HE!" );
					}
				}
			}
		}
		
		case 2:
		{
			switch( iKeys )
			{
				case 1:
				{
					set_user_health( id, 255 );
					set_user_armor( id, 255 );
					
					client_print( id, print_center, "Ai primit 255HP & 255AP!" );
				}
				case 2:
				{
					if ( user_has_weapon( id, CSW_HEGRENADE ) )
					{
						client_print( id, print_center, "Ai deja o Grenada HE!" );
						
					} else {
						
						give_item( id, "weapon_hegrenade" );
						
						client_print( id, print_center, "Ai primit o Grenada HE!" );
					}
				}
				
				case 3:
				{
					g_bNoRecoil[ id ]  = true;
					
					client_print( id, print_center, "Ai primit NoRecoil!" );
				}
				
				case 4:
				{
					g_bTeleport[ id ]  = true;
					
					client_cmd( id, "bind v ^"+teleport^"" );
					
					client_print( id, print_center, "Ai primit Teleport!" );
					client_print( id, print_chat, "%s Apasa tasta V pentru a folosi teloprtul!", szTag );
					
				}
				
			}
			
		}
		
	}
	
	return 0;
	
}

public cmdVIPTeleport( id )
{
	if( !is_user_alive( id ) || !g_bTeleport[ id ] )
		return PLUGIN_HANDLED;

	
	static Float:fTime;

	fTime = get_gametime( );

	if( g_fLastUsed[ id ] > 0.0 && ( fTime - g_fLastUsed[ id ] ) < TELEPORT_INTERVAL )
	{
   
		client_print( id, print_chat, "%s Poti folosi telportarea odata la %i secunde!", szTag, floatround( TELEPORT_INTERVAL ) );
		return PLUGIN_HANDLED;
	}   

	static Float:start[ 3 ], Float:dest[ 3 ];
	
	pev(id, pev_origin, start);
	pev(id, pev_view_ofs, dest);
	xs_vec_add(start, dest, start);
	pev(id, pev_v_angle, dest);

	engfunc(EngFunc_MakeVectors, dest);
	global_get(glb_v_forward, dest);
	xs_vec_mul_scalar(dest, 9999.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_TraceLine, start, dest, IGNORE_MONSTERS, id, 0);
	get_tr2(0, TR_vecEndPos, start);
	get_tr2(0, TR_vecPlaneNormal, dest);

	static const player_hull[] = {HULL_HUMAN, HULL_HEAD};
	engfunc(EngFunc_TraceHull, start, start, DONT_IGNORE_MONSTERS, player_hull[_:!!(pev(id, pev_flags) & FL_DUCKING)], id, 0);
	
	if ( !get_tr2(0, TR_StartSolid) && !get_tr2(0, TR_AllSolid) &&  get_tr2(0, TR_InOpen))
	{
		engfunc(EngFunc_SetOrigin, id, start);
		return PLUGIN_HANDLED;
	}

	static Float:size[3];
	pev(id, pev_size, size);

	xs_vec_mul_scalar(dest, (size[0] + size[1]) / 2.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_SetOrigin, id, dest);
	
	

	g_fLastUsed[id] = fTime;

	return PLUGIN_HANDLED;
}				
								
public fwdPlayerPreThink( id )
{
	if( !is_user_alive( id ) && !g_bNoRecoil[ id ] )
		return 1;
		
	if ( get_user_flags( id ) & ADMIN_VIP )
	{
		set_pev( id, pev_punchangle, { 0.0,0.0,0.0 } );
	}
	
	return 0;
}
-255ap si hp
-he la 30 secunde
-godmode
-teleport
-no recoil
-2x demage
Image
Skkyler
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 08 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

08 Dec 2013, 16:20

Daca il faceti si sa dea 25hp pe kill 40pe hs si 3$ pe 1damage...
Spune-mi de unde fac rost de un fisier amxx pentru pluginu dat
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

08 Dec 2013, 16:31

| Afiseaza codul
#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
#include < cstrike >
#include < fun >
#include < xs >

#define ADMIN_VIP		ADMIN_LEVEL_H

#define TELEPORT_INTERVAL	 20.0 //float

static const PLUGIN[ ]		= "VIP Furien";
static const VERSION[ ] 		= "1.0";

static const szTag[ ]		= "[VIP]";

new Float:g_fLastUsed[ 33 ];

new g_bNoRecoil[ 33 ];
new g_bTeleport[ 33 ]

public plugin_init( ) 
{
	register_plugin( PLUGIN, VERSION, "Unhask" );
	
	register_event( "ResetHUD", "SpawnPlayer", "be" );
	register_event( "DeathMsg", "evDeathMsg", "a" )
	register_event("Damage", "event_damage", "b")
	
	register_clcmd( "say", "SayChatAnswer" );
	
	register_concmd( "+teleport", "cmdVIPTeleport" );
	register_concmd( "-teleport", "cmdVIPTeleport" );
	
	register_forward( FM_PlayerPreThink, "fwdPlayerPreThink" );
}

public SpawnPlayer( id )
{
	g_bNoRecoil[ id ] = false;
	g_bTeleport[ id ] = false;
}

public SayChatAnswer( id )
{
	new szSaid[ 132 ];
	
	read_args( szSaid, sizeof ( szSaid ) - 1 );
	remove_quotes( szSaid );
	
	if ( containi( szSaid, "/vip" ) || containi( szSaid, "/vips" ) || containi( szSaid, "/furienvip" ) )
	{
		if ( is_user_alive( id ) && get_user_flags( id ) & ADMIN_VIP )
		{
			ShowMenuVIP( id );
		}
	}
}

public ShowMenuVIP( id )
{
	new szMenu;
	
	switch ( get_user_team( id ) )
	{
		case 1:
		{
			szMenu = menu_create( "Furien VIP", "iContent" );
			
			menu_additem( szMenu, "255HP & 255AP", 	"1" );
			menu_additem( szMenu, "He Grenade", 	"2" );
		}
		
		case 2:
		{
			szMenu = menu_create( "AntiFurien VIP", "iContent" );
			
			menu_additem( szMenu, "255HP & 255AP", 	"1" );
			menu_additem( szMenu, "He Grenade", 	"2" );
			menu_additem( szMenu, "NoRecoil", 	"3" );
			menu_additem( szMenu, "Teleport", 	"4" );
		}
	}
	
	menu_display( id, szMenu, 0 );
	
	return 0;
}

public iContent( id, szMenu, Item )
{
	if ( Item == MENU_EXIT )
	{
		menu_destroy( szMenu )
		return 1;
	}
	
	new iData[ 9 ], szName[ 32 ];
	new iAccess, iCallback;
	
	menu_item_getinfo( szMenu, Item, iAccess, iData, sizeof ( iData ) - 1, szName, sizeof ( szName ) - 1, iCallback );
	
	new iKeys = str_to_num( iData );
	
	switch( get_user_team( id ) )
	{
		case 1:
		{
			switch( iKeys )
			{
				case 1:
				{
					set_user_health( id, 255 );
					set_user_armor( id, 255 );
					
					client_print( id, print_center, "Ai primit 255HP & 255AP!" );
				}
				case 2:
				{
					if ( user_has_weapon( id, CSW_HEGRENADE ) )
					{
						client_print( id, print_center, "Ai deja o Grenada HE!" );
						
						} else {
						
						give_item( id, "weapon_hegrenade" );
						
						client_print( id, print_center, "Ai primit o Grenada HE!" );
					}
				}
			}
		}
		
		case 2:
		{
			switch( iKeys )
			{
				case 1:
				{
					set_user_health( id, 255 );
					set_user_armor( id, 255 );
					
					client_print( id, print_center, "Ai primit 255HP & 255AP!" );
				}
				case 2:
				{
					if ( user_has_weapon( id, CSW_HEGRENADE ) )
					{
						client_print( id, print_center, "Ai deja o Grenada HE!" );
						
						} else {
						
						give_item( id, "weapon_hegrenade" );
						
						client_print( id, print_center, "Ai primit o Grenada HE!" );
					}
				}
				
				case 3:
				{
					g_bNoRecoil[ id ]  = true;
					
					client_print( id, print_center, "Ai primit NoRecoil!" );
				}
				
				case 4:
				{
					g_bTeleport[ id ]  = true;
					
					client_cmd( id, "bind v ^"+teleport^"" );
					
					client_print( id, print_center, "Ai primit Teleport!" );
					client_print( id, print_chat, "%s Apasa tasta V pentru a folosi teloprtul!", szTag );
					
				}
				
			}
			
		}
		
	}
	
	return 0;
	
}

public cmdVIPTeleport( id )
{
	if( !is_user_alive( id ) || !g_bTeleport[ id ] )
		return PLUGIN_HANDLED;
	
	
	static Float:fTime;
	
	fTime = get_gametime( );
	
	if( g_fLastUsed[ id ] > 0.0 && ( fTime - g_fLastUsed[ id ] ) < TELEPORT_INTERVAL )
	{
		
		client_print( id, print_chat, "%s Poti folosi telportarea odata la %i secunde!", szTag, floatround( TELEPORT_INTERVAL ) );
		return PLUGIN_HANDLED;
	}   
	
	static Float:start[ 3 ], Float:dest[ 3 ];
	
	pev(id, pev_origin, start);
	pev(id, pev_view_ofs, dest);
	xs_vec_add(start, dest, start);
	pev(id, pev_v_angle, dest);
	
	engfunc(EngFunc_MakeVectors, dest);
	global_get(glb_v_forward, dest);
	xs_vec_mul_scalar(dest, 9999.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_TraceLine, start, dest, IGNORE_MONSTERS, id, 0);
	get_tr2(0, TR_vecEndPos, start);
	get_tr2(0, TR_vecPlaneNormal, dest);
	
	static const player_hull[] = {HULL_HUMAN, HULL_HEAD};
	engfunc(EngFunc_TraceHull, start, start, DONT_IGNORE_MONSTERS, player_hull[_:!!(pev(id, pev_flags) & FL_DUCKING)], id, 0);
	
	if ( !get_tr2(0, TR_StartSolid) && !get_tr2(0, TR_AllSolid) &&  get_tr2(0, TR_InOpen))
	{
		engfunc(EngFunc_SetOrigin, id, start);
		return PLUGIN_HANDLED;
	}
	
	static Float:size[3];
	pev(id, pev_size, size);
	
	xs_vec_mul_scalar(dest, (size[0] + size[1]) / 2.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_SetOrigin, id, dest);
	
	
	
	g_fLastUsed[id] = fTime;
	
	return PLUGIN_HANDLED;
}				

public fwdPlayerPreThink( id )
{
	if( !is_user_alive( id ) && !g_bNoRecoil[ id ] )
		return 1;
	
	if ( get_user_flags( id ) & ADMIN_VIP )
	{
		set_pev( id, pev_punchangle, { 0.0,0.0,0.0 } );
	}
	
	return 0;
}
public evDeathMsg(id)
{
	if(get_user_flags(id) & ADMIN_VIP)
	{
		new iKiller
		new iVictim
		new iHeadshot
		
		iKiller = read_data(1)
		iVictim = read_data(2)
		iHeadshot = read_data(3)
		
		if(iKiller != iVictim && is_user_alive(iKiller))
		{
			set_user_health(iKiller, get_user_health(iKiller) + 25)
		}
		if(iHeadshot)
		{
			set_user_health(iKiller, get_user_health(iKiller) + 40)
		}
	}
}
public event_damage(id)
{
	if(get_user_flags(id) & ADMIN_VIP)
	{
		new wID = 0;
		new body = 0;
		
		new attackerID = get_user_attacker(id, wID, body);
		
		if(is_user_alive(attackerID) && attackerID != id)
		{
			cs_set_user_money(attackerID, cs_get_user_money(attackerID) + 100)
		}
	}
}
Skkyler
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 08 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

08 Dec 2013, 17:23

spuneti-mi si untre trebuie sa-l bag ce trebuie sa fac si astea please. :)
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:

08 Dec 2013, 17:54

Ca sa faci rost de .amxx la un plugin trebuie compilat. Compilarea o poti face local sau pe http://amx.freakz.ro

Am facut si eu unu cum ai zis tu [Fix cum ai zis] dar nu l-am testat.

Uite | Afiseaza codul
/*------------------------------------------------------------------------------------------------------------
 
 *Change Log

	* 1.0 - Lansare
	
 * Credits
 
	* Unhask - Am luat functia de teleport din pluginul lui [VIP FURIEN - VERSIUNEA 1]
	* GhosT *** - Pentru scrierea pluginului

 * VIP Commands
 
	* /vips - Arata lista cu vipurile online.
	* /vm - Arata meniul VIP
	* /vipmenu - Arata meniul VIP
	* /vmenu - Arata meniul VIP
	
 * Cvars
 
	* Nu are
	
-------------------------------------------------------------------------------------------------------------*/

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

#define VIP_LEVEL ADMIN_LEVEL_H // FLAG VIP

#define PLUGIN "Vip plugin"
#define AUTOR "GhosT"

#define TELEPORT_INTERVAL	 20.0 //float

new limita[33]; // Limita pentru meniu
new g_bNoRecoil[33]; // No Recoil
new g_bTeleport[33]; // Teleport

new Float:g_fLastUsed[ 33 ];

new maxplayers;
new gmsgSayText;

public plugin_init()
{	
	register_plugin(PLUGIN, "1.0", AUTOR);
	
	register_logevent("inceput_runda", 2, "1=Round_Start");
	RegisterHam(Ham_Spawn, "player", "VipSpawn");
	
	register_clcmd("say /vipmenu", "menu");
	register_clcmd("say /vmenu", "menu");
	register_clcmd("say /vm", "menu");
	register_concmd( "+teleport", "tele_cmd" );
	register_concmd( "-teleport", "tele_cmd" );
	
	register_forward(FM_PlayerPreThink, "no_recoil");
	register_message(get_user_msgid("ScoreAttrib"),"vip_scoreboard");
	
	register_clcmd("say", "handle_say")
	register_clcmd("say_team", "handle_say")
	maxplayers = get_maxplayers()
	gmsgSayText = get_user_msgid("SayText")
}

public client_putinserver(id)
{
	g_bNoRecoil[id] = false;
	g_bTeleport[id] = false;
}
public client_disconnect(id)
{
	client_putinserver(id)
}

public VipSpawn(id)
{
	if(get_user_flags(id) & VIP_LEVEL)
	{
		set_task(2.0, "Spawn_vip", id)
	}
}
public Spawn_vip(id)
{
	set_user_health(id, 255)
	set_user_health(id, 255)
}

public inceput_runda(id)
{
	new iPlayers[32];
	new iNum;
	
	get_players(iPlayers, iNum);
	for(new i = 0; i < iNum; i++)
	{
		limita[iPlayers] = 0;
	}
}

public menu(id)
{	
	if(limita[id] == 1)
	{
		ColorChat(id, GREEN, "[VIP]^x03 Ai folosit deja meniul VIP");
		return PLUGIN_HANDLED;
	}
	if(is_user_alive(id) && get_user_flags(id) & VIP_LEVEL)
	{
		set_task(0.1, "vip_menu", id)
	}
	if(get_user_flags(id) & ADMIN_USER)
	{
		ColorChat(id,GREEN,"[VIP]^x03 Nu ai acces la meniu !");
	}
	
	return PLUGIN_CONTINUE
}

public vip_menu(id)
{
	new menu = menu_create("\rV\y.\rI\y.\rP \yMenu", "menu_vip");
	
	menu_additem(menu, "10 He Grenade", "1", 0)
	menu_additem(menu, "God Mode", "2", 0)
	menu_additem(menu, "Teleport", "3", 0)
	menu_additem(menu, "No Recoil", "4", 0)
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
	menu_display(id, menu, 0)
}

public menu_vip(id, menu, item)
{
	if(item == MEXIT_ALL)
	{
		return 1;
	}
	
	new access, callback, data[6], szName[64];
	
	menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
	new key = str_to_num(data);
	
	switch(key)
	{
		case 1:
		{
			set_task(10.0, "give_he_grenade", id)
			limita[id] += 1
		}
		case 2:
		{
			set_user_godmode (id, 1);
			set_task (3.0,"stop_gm", id);
			
			ColorChat(id, GREEN, "[VIP]^x03 Ai primit^x04 God Mode^x03 !")
			limita[id] += 1
		}
		case 3:
		{
			g_bTeleport[id] = true;
			client_cmd(id, "bind v ^"+teleport^"");
			
			ColorChat(id, GREEN, "[VIP]^x03 Ai primit^x04 Teleport^x04 !");
			ColorChat(id, GREEN, "[VIP]^x03 Pentru activare apasati tasta^x04 V^x03 !");
			limita[id] += 1
		}
		case 4:
		{
			g_bNoRecoil[ id ] = true;
			
			ColorChat(id, GREEN, "[VIP]^x03 Ai primit^x04 No Recoil^x04 !");
			limita[id] += 1
		}
	}
	
	menu_destroy(menu);
	return 1
	
}
	
public give_he_grenade(id)
{
	fm_give_item(id, "weapon_hegrenade")
	ColorChat(id, GREEN, "[VIP]^x03 Ai primit un^x04 He Grenade^x03 !");
	set_task(10.0, "give_he_grenade", id)
}
public stop_gm(id)
{
	set_user_godmode(id, 0)
	ColorChat(id, GREEN, "[VIP]^x03 Nu mai ai^x04 God Mode^x03 !")
	
	set_task(22.0, "re_gm", id)
}
public re_gm(id)
{
	set_user_godmode(id, 1)
	ColorChat(id, GREEN, "[VIP]^x03 Ai reprimit puterea^x04 God Mode^x03 !")
	set_task(3.0, "stop_gm", id)
}

public tele_cmd(id)
{
	if( !is_user_alive( id ) || !g_bTeleport[ id ] )
		return PLUGIN_HANDLED;
	
	
	static Float:fTime;
	
	fTime = get_gametime( );
	
	if( g_fLastUsed[ id ] > 0.0 && ( fTime - g_fLastUsed[ id ] ) < TELEPORT_INTERVAL )
	{
		
		ColorChat(id, GREEN, "[VIP]^x03 Poti folosi teleportarea odata la^x04 %i^x03 secunde !", floatround(TELEPORT_INTERVAL));
		return PLUGIN_HANDLED;
	}   
	
	static Float:start[ 3 ], Float:dest[ 3 ];
	
	pev(id, pev_origin, start);
	pev(id, pev_view_ofs, dest);
	xs_vec_add(start, dest, start);
	pev(id, pev_v_angle, dest);
	
	engfunc(EngFunc_MakeVectors, dest);
	global_get(glb_v_forward, dest);
	xs_vec_mul_scalar(dest, 9999.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_TraceLine, start, dest, IGNORE_MONSTERS, id, 0);
	get_tr2(0, TR_vecEndPos, start);
	get_tr2(0, TR_vecPlaneNormal, dest);
	
	static const player_hull[] = {HULL_HUMAN, HULL_HEAD};
	engfunc(EngFunc_TraceHull, start, start, DONT_IGNORE_MONSTERS, player_hull[_:!!(pev(id, pev_flags) & FL_DUCKING)], id, 0);
	
	if ( !get_tr2(0, TR_StartSolid) && !get_tr2(0, TR_AllSolid) &&  get_tr2(0, TR_InOpen))
	{
		engfunc(EngFunc_SetOrigin, id, start);
		return PLUGIN_HANDLED;
	}
	
	static Float:size[3];
	pev(id, pev_size, size);
	
	xs_vec_mul_scalar(dest, (size[0] + size[1]) / 2.0, dest);
	xs_vec_add(start, dest, dest);
	engfunc(EngFunc_SetOrigin, id, dest);
	
	
	
	g_fLastUsed[id] = fTime;
	
	return PLUGIN_HANDLED;
}

public no_recoil(id)
{
	if(!is_user_alive(id) && g_bNoRecoil[id])
	return 1;
	
	if(get_user_flags(id) & VIP_LEVEL)
	{
		set_pev(id, pev_punchangle, {0.0,0.0,0.0});
	}
	
	return 0;
}

public vip_scoreboard(const MsgId, const MsgType, const MsgDest) 
{
	static id;
	id = get_msg_arg_int(1);
	if(get_user_flags(id) & VIP_LEVEL)
	set_msg_arg_int(2, ARG_BYTE, (1 << 2 ));
}

public handle_say(id)
{
	new said[192]
	read_args(said,192)
	if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 )
	set_task(0.1,"vip_list",id)
	return PLUGIN_CONTINUE
}

public vip_list(user) 
{
	new adminnames[33][32]
	new message[256]
	new id, count, x, len
	
	for(id = 1 ; id <= maxplayers ; id++)
		if(is_user_connected(id))
			if(get_user_flags(id) & VIP_LEVEL)
				get_user_name(id, adminnames[count++], 31)

	len = format(message, 255, "^x04 VIP^x03 ONLINE: ")
	if(count > 0) {
		for(x = 0 ; x < count ; x++)
		{
			len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
			if(len > 96 )
			{
				print_message(user, message)
				len = format(message, 255, "^x03 ")
			}
		}
		print_message(user, message)
	}
	else
	{
		len += format(message[len], 255-len, "No VIP online.")
		print_message(user, message)
	}
}
print_message(id, msg[])
{
	message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
	write_byte(id)
	write_string(msg)
	message_end()
}
Last edited by GhosT *** on 08 Dec 2013, 18:04, edited 1 time in total.
Skkyler
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 08 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

08 Dec 2013, 18:01

MS! Dar trebuie sa mai fac si un sma. sau cum fac unde il pun ca am facut cum ai zis u :)
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

08 Dec 2013, 18:01

Daca nu sti nimic de ce iti faci server? :)
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:

08 Dec 2013, 18:05

scosmynnnn wrote:Daca nu sti nimic de ce iti faci server? :)
Poate omul inca nu are server si vrea sa invete :-"


Uite i-a de aici .amxx : http://amx.freakz.ro/compiled/vip_cerere_439b9w9k.amxx

Mai mult de atat nu iti pot face /:)

:-h
Skkyler
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 08 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Contact:

08 Dec 2013, 19:10

Am observat niste buguri:
-cand ma teleportez raman blocat
-cand iau teleportu imi da si he-uri
-nu merge Godmodeu (nu e bindat pe nici o tasta)
-cand intru imi da toate beneficiile..adica imi da si hp si no.recoil si teleport si he-uri
Sper ca poti sa le rezolvi..
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests