Plugin VIP [zp]

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
Good.
Membru, skill +2
Membru, skill +2
Posts: 846
Joined: 17 Aug 2012, 09:04
Detinator Steam: Da
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (2 luni)
Nume anterior: []GooD[]
Location: Bucuresti
Has thanked: 188 times
Been thanked: 33 times
Contact:

21 Dec 2013, 17:55

Doresc un plugin vip pentru zombie plague cu urmatoarele:

Gloante infinite
200 armura
2x jump
3x DMG
Sa apar in TAB Score, "VIP" in dreptul numelui
Cand tastez /vips sa apara cine este vip (online)
Flagul pentru VIP vreau sa fie "x".


PS: Nu vreau modele.

Multumesc anticipat.
Rapidserver
User avatar
Ra # k1du
Membru, skill +3
Membru, skill +3
Posts: 1248
Joined: 03 Feb 2012, 15:25
Detinator Steam: Da
CS Status: Best player of the week !
Detinator server CS: furien.cyberz.ro
SteamID: kdzlovefun
Has thanked: 81 times
Been thanked: 42 times
Contact:

21 Dec 2013, 17:57

Ti-l dau pe mess.
http://evict.ro - un forum pentru toti !
User avatar
Good.
Membru, skill +2
Membru, skill +2
Posts: 846
Joined: 17 Aug 2012, 09:04
Detinator Steam: Da
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (2 luni)
Nume anterior: []GooD[]
Location: Bucuresti
Has thanked: 188 times
Been thanked: 33 times
Contact:

21 Dec 2013, 18:45

Ra # k1du wrote:Ti-l dau pe mess.
Nu-i ceea ce vreau eu.
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

21 Dec 2013, 20:06

Ti-l fac eu mai pe seara,acum abia am intrat in casa de dimineata pana acum ;)
P.S Mai incolo ti-l fac 100% ;)

EDIT:
| Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <fun>

new bool:g_bInfiniteBullets[ 33 ], bool:g_bDamage[ 33 ];
new g_iMaxPlayers;
new gmsgSayText;
new task = 123443;

static const COLOR[] = "^x04"

enum
{
CurWeapon_IsActive = 1,
CurWeapon_WeaponID, 
CurWeapon_ClipAmmo
};

#define XO_WEAPON      4
#define m_iClip         51
#define m_iClientClip   52

#define m_pActiveItem   373

#define ADMIN_VIP	ADMIN_LEVEL_H

#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers ) 

new const g_iMaxClip[CSW_P90+1] = {
-1,  13, -1, 10,  1,  7,    1, 30, 30,  1,  30, 
20, 25, 30, 35, 25,   12, 20, 10, 30, 100,
8 , 30, 30, 20,  2,    7, 30, 30, -1,  50
}


public plugin_init()
{
register_plugin("PLUGIN", "VERSION", "C0sm1N /* Mersi kronos pentru gloante infinite */");

RegisterHam(Ham_Spawn,"player","fwd_spawn",1)
RegisterHam ( Ham_TakeDamage, "player", "fwd_takedamage" )
register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" )
g_iMaxPlayers = get_maxplayers ( )

register_clcmd ("say /vips","showvips")
gmsgSayText = get_user_msgid("SayText")
}
public event_curweapon( iMsgId, iMsgDest, id )
{
if ( get_msg_arg_int( CurWeapon_IsActive ) && g_bInfiniteBullets[ id ] )
{
	new iMaxClip = g_iMaxClip[ get_msg_arg_int( CurWeapon_WeaponID ) ]
	if( get_msg_arg_int(CurWeapon_ClipAmmo) < iMaxClip )
	{
		new iWeapon = get_pdata_cbase( id, m_pActiveItem )
		if ( iWeapon > 0 )
		{
			set_pdata_int( iWeapon, m_iClip, iMaxClip, XO_WEAPON )
			set_pdata_int( iWeapon, m_iClientClip, iMaxClip, XO_WEAPON )
			
			set_msg_arg_int( CurWeapon_ClipAmmo, ARG_BYTE, iMaxClip )
		}
	}
}
}
public fwd_spawn(id)
{
	if(is_user_alive(id) && get_user_flags(id) & ADMIN_VIP)
	{
		g_bInfiniteBullets[id] = true;
		g_bDamage[id] = true;
		set_user_armor(id, get_user_armor(id) + 100)
		
		set_task(1.0,"settabscore",id + task)
	}
}
public fwd_takedamage(iVictim, iInflictor, iAttacker, Float:fDamage)
{
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && g_bDamage[ iAttacker ] )
	{
		SetHamParamFloat ( 4, fDamage * 3.0 );
		return HAM_HANDLED;
	}
	return HAM_IGNORED;
}
public showvips(user) 
{
	new adminnames[33][32]
	new message[256]
	new id, count, x, len
	new maxplayers = get_maxplayers()
	for(id = 1 ; id <= maxplayers ; id++)
		if(is_user_connected(id))
		if(get_user_flags(id) & ADMIN_VIP)
		get_user_name(id, adminnames[count++], 31)
	
	len = format(message, 255, "%s VIP ONLINE: ",COLOR)
	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, "%s ",COLOR)
			}
		}
		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()
}
public settabscore( idtask )
{
	new id = idtask - task
	
	if(is_user_connected(id))
 	{
		message_begin( MSG_ALL, get_user_msgid( "ScoreAttrib" ) )
		
		write_byte( id );
		write_byte( 4 );
		
		message_end( );
	}
}
public client_disconnect(id)
{
	g_bDamage[id] = false;
	g_bInfiniteBullets[id] = false;
}
fara multijump,scuze.
User avatar
Good.
Membru, skill +2
Membru, skill +2
Posts: 846
Joined: 17 Aug 2012, 09:04
Detinator Steam: Da
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (2 luni)
Nume anterior: []GooD[]
Location: Bucuresti
Has thanked: 188 times
Been thanked: 33 times
Contact:

22 Dec 2013, 07:24

Daca ai putea sa-l pui pe flagul "x" ar fi super.
Cobra*
Membru, skill 0
Membru, skill 0
Posts: 73
Joined: 31 Dec 2012, 18:06
Detinator Steam: Da
SteamID: STEAM_0:0:30509699
Has thanked: 22 times

22 Dec 2013, 10:30

User avatar
Good.
Membru, skill +2
Membru, skill +2
Posts: 846
Joined: 17 Aug 2012, 09:04
Detinator Steam: Da
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (2 luni)
Nume anterior: []GooD[]
Location: Bucuresti
Has thanked: 188 times
Been thanked: 33 times
Contact:

22 Dec 2013, 10:34

Eu vreau sa fac altceva , nu-mi este de folos ala pentru ca adaug vip din vips.ini
Cobra*
Membru, skill 0
Membru, skill 0
Posts: 73
Joined: 31 Dec 2012, 18:06
Detinator Steam: Da
SteamID: STEAM_0:0:30509699
Has thanked: 22 times

22 Dec 2013, 10:38

Asa si? Bagi vip acolo si in caz ca vrei sa faci altceva poti sa-i adaugi si in users.ini flagul dorit , nu te afecteaza cu nimic.
User avatar
Good.
Membru, skill +2
Membru, skill +2
Posts: 846
Joined: 17 Aug 2012, 09:04
Detinator Steam: Da
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (2 luni)
Nume anterior: []GooD[]
Location: Bucuresti
Has thanked: 188 times
Been thanked: 33 times
Contact:

22 Dec 2013, 10:39

Fa tu asta , nu e tot una.

Te rog nu mai raspunde in topicu asta , nu ai experienta necesara.
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

22 Dec 2013, 13:46

Nu exista flagu-l x :)
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Facebook [Bot], Google [Bot] and 12 guests