Jump to content

Photo

[CS16 - Request] Modificare Plugin VIP tag


  • Please log in to reply
3 replies to this topic

#1
win4life

win4life

    Banned

  • Banned
  • 332 posts
  • 112 topics
  • Joined 15-January 13

Salut acesta este pluginul VIP TAG  IN SCORE BOARD as vrea daca puteti sa il modificati care este problema, problema e ca atunci cand eu omor pe un player in dreptul sau unde trebuie sa scrie DEAD scrie tot VIP as vrea sa scrie DEAD dupa ce este omorat. Multumesc anticipat.

 

 

#include < amxmodx >

 
#define ADMIN_ACCES ADMIN_LEVEL_H
 
#define SCOREATTRIB_VIP  ( 1 << 2 )
 
public plugin_init( ) {
register_plugin( "VIP", "0.0.1", "Hamlet" );
 
register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
}
 
public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
 
new id = get_msg_arg_int( 1 );
 
if( is_user_connected( id ) && ( get_user_flags( id ) & ADMIN_ACCES ) ) 
set_msg_arg_int( 2, ARG_BYTE,  SCOREATTRIB_VIP  );
 
}

 


 
 


#2
renko

renko

    Fost Moderator

  • Retired
  • 808 posts
  • 67 topics
  • Joined 01-January 17
  • Country: Country Flag

Te referi la killfeed? Te rog explica mai bine ce modificari doresti sa fie facute.



#3
win4life

win4life

    Banned

  • Topic Starter

  • Banned
  • 332 posts
  • 112 topics
  • Joined 15-January 13

Deci eu vreau sa imi arate ca in poza cand e viu sa arate VIP cand e mort sa arate DEAD 

 

KmRV3UN.jpg



#4
EduArT

Daca te ajuta.

enum {
	SCOREATTRIB_ARG_PLAYERID = 1,
	SCOREATTRIB_ARG_FLAGS
};

enum (<<= 1) {
	SCOREATTRIB_FLAG_NONE = 0,
	SCOREATTRIB_FLAG_DEAD = 1,
	SCOREATTRIB_FLAG_BOMB,
	SCOREATTRIB_FLAG_VIP
};

	register_message(get_user_msgid("ScoreAttrib"), "MessageScoreAttrib");
public MessageScoreAttrib(iMsgId, iDest, iReceiver)
{
	new iPlayer = get_msg_arg_int(SCOREATTRIB_ARG_PLAYERID);

	if (get_user_flags(iPlayer) & VIP_FLAG)
		set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP);
}


  • win4life likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users