[Cerere] Plugin V.I.P

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
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

25 Dec 2019, 15:59

Plugin Cerut: VIP Classic
Descriere (adica ce face el mai exact): As doari sa Ofere doar cateva beneficii ! 1.Armura , 2.Multijump + 3. Gloante infinite si sa apara in scoreboard VIP" !
Serverul impune conditii strict HLDS/REHLDS?: nu
Ai cautat pluginul?(daca da, precizeaza cum): da (Google + aici pe forum folosind "search"
Necesita mod special?: nu stiu !

Va Multumesc Tuturor ! Sarbatori Fericite !
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3017
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: 39 times
Been thanked: 458 times
Contact:

25 Dec 2019, 23:34

ce flag are vip
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add 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, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se va posta la actual, doar dacă se găsește ceva critic/urgent de remediat, fiind coduri vechi, iar unele refăcute recent.
User avatar
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

25 Dec 2019, 23:54

L E V I N wrote:
25 Dec 2019, 23:34
ce flag are vip

"t"

Multumesc Frumos
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3017
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: 39 times
Been thanked: 458 times
Contact:

26 Dec 2019, 00:36

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
}
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add 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, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se va posta la actual, doar dacă se găsește ceva critic/urgent de remediat, fiind coduri vechi, iar unele refăcute recent.
User avatar
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

26 Dec 2019, 02:05

L E V I N wrote:
26 Dec 2019, 00:36

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
}
Multumesc Mult !! Cel mai frumos cadou de craciun !! ;) #Respect !
User avatar
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

30 Dec 2019, 00:10

L E V I N wrote:
26 Dec 2019, 00:36

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
}
ma scuzi ! Poti adauga sa fie pentru zombie_plague ? Te rog frumos ! Am 2 server cs 1 classic si 1 zm !! Daca poti sa faci ceva , te rog ajutama ! Iti multumesc !
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 164
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: 29 times
Contact:

30 Dec 2019, 20:32

Errorcs wrote:
30 Dec 2019, 00:10
L E V I N wrote:
26 Dec 2019, 00:36

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
}
ma scuzi ! Poti adauga sa fie pentru zombie_plague ? Te rog frumos ! Am 2 server cs 1 classic si 1 zm !! Daca poti sa faci ceva , te rog ajutama ! Iti multumesc !
adauga #include <zombieplague>
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 164
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: 29 times
Contact:

30 Dec 2019, 20:32

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>
#include <zombieplague>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
} 
User avatar
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

30 Dec 2019, 23:08

N3v3rM1nd wrote:
30 Dec 2019, 20:32

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>
#include <zombieplague>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
} 
am adaugat si imi da eroarea asta /tmp/texthrHHfo.sma(9) : fatal error 100: cannot read from file: "zombieplague" ce pot sa fac ?
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 164
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: 29 times
Contact:

31 Dec 2019, 00:35

Acum am observat ce fel de plugin e ... =) Poti folosi mai eficient pluginul de vip https://forums.alliedmods.net/showthread.php?p=1098857
Last edited by L E V I N on 31 Dec 2019, 17:20, edited 1 time in total.
Reason: n-are legătură:))) trb compilat local dacă tot include zp
User avatar
Errorcs
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Dec 2019, 00:31
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 3 times

31 Dec 2019, 18:28

L E V I N wrote:
26 Dec 2019, 00:36

Code: Select all

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <fun>

#define VIP_FLAG "t"
#define is_vip(%1)	(get_user_flags(%1)&read_flags(VIP_FLAG))

enum
{
   CurWeapon_IsActive = 1, // byte
   CurWeapon_WeaponID, // byte
   CurWeapon_ClipAmmo // byte
}

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

//#define XO_PLAYER 4
#define m_pActiveItem   373

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
}

new jumpnum[33],bool:dojump[33]

#define VIP  ( 1 << 2 )
#define DEAD    ( 1 << 0 )

public plugin_init(){
	register_cvar("mj_vip","2") // 1 e cea normala

	register_message( get_user_msgid( "CurWeapon" ), "event_curweapon" );
	register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	
	RegisterHam(Ham_Spawn,"player","SPCMD",1)
}

public client_putinserver(id){
	jumpnum[id] = 0
	dojump[id] = false
}
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
   new id = get_msg_arg_int( 1 );
   if(is_user_connected( id ) && is_vip(id) )	set_msg_arg_int( 2, ARG_BYTE, is_user_alive( id ) ? VIP : DEAD );
}
public client_PreThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	new nbut = get_user_button(id),obut = get_user_oldbutton(id)
	if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
	{
		if(jumpnum[id] < get_cvar_num("mj_vip"))
		{
			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 SPCMD(id)	if(is_user_alive(id)&&is_vip(id))	cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)
public client_PostThink(id){
	if(!is_user_alive(id)||!is_vip(id)) return PLUGIN_CONTINUE
	if(dojump[id])
	{
		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 event_curweapon( iMsgId, iMsgDest, id ){
   if( get_msg_arg_int(CurWeapon_IsActive) && is_vip(id) && is_user_alive(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/*, XO_PLAYER*/)
         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)
         }
      }
   }
}
LEVIN ma ajuti tu te rog ? Sa nu mai deschid alt topic ! Ti-as fi tare recunosscator daca m-ai ajuta !

Oricum , Multumesc frumos ca m-ai ajutat la cel de sus !
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3017
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: 39 times
Been thanked: 458 times
Contact:

31 Dec 2019, 18:58

explică cum pentru zp..ce zp ai dacă trb alt inc decât cel de pe net..ce vrei la el pentru zm hm
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add 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, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se va posta la actual, doar dacă se găsește ceva critic/urgent de remediat, fiind coduri vechi, iar unele refăcute recent.
Post Reply

Return to “Cereri”

  • Information