It is currently 17 Aug 2018 14:28



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 6 posts ] 
 Cerere modificare plugin 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Vreau si eu sa imi modificati acest plugin, sa nu mai arate ( ) in paranteze.
Apare Membrii VIP ( 1 ) , vreau sa fie doar "Membrii VIP:"

Sma-ul care l-am gasit:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"

new const g_szBeginning[ ] = "Membrii VIP"
new g_szMessage[ 256 ];

new SyncHudMessage;

public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );

set_task( 1.0, "TaskDisplayVips", _, _, _, "b", 0 );
SyncHudMessage = CreateHudSyncObj( );

// Add your code here...
}

public TaskDisplayVips( )
{
static iPlayers[ 32 ];
static iPlayersNum;

get_players( iPlayers, iPlayersNum, "ch" );
if( !iPlayersNum )
return;

static iVipsConnected, szVipsNames[ 128 ], szName[ 32 ];
//formatex( szVipsNames, sizeof ( szVipsNames ) -1, "" ); // Is this needed ?
iVipsConnected = 0;

static id, i;
for( i = 0; i < iPlayersNum; i++ )
{
id = iPlayers[ i ];
if( get_user_flags( id ) & read_flags( "l" ) )
{
get_user_name( id, szName, sizeof ( szName ) -1 );

add( szVipsNames, sizeof ( szVipsNames ) -1, szName );
add( szVipsNames, sizeof ( szVipsNames ) -1, "^n" );

iVipsConnected++;
}
}

formatex( g_szMessage, sizeof ( g_szMessage ) -1, "%s ( %i )^n%s",
g_szBeginning, iVipsConnected, szVipsNames );

set_hudmessage( 25, 255, 25, 0.01, 0.25, 0, 0.0, 1.0, 0.1, 0.1, -1 );
ShowSyncHudMsg( 0, SyncHudMessage, g_szMessage );

}


01 Aug 2018 19:57
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 22:12
Posts: 50
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Karamel wrote:
Vreau si eu sa imi modificati acest plugin, sa nu mai arate ( ) in paranteze.
Apare Membrii VIP ( 1 ) , vreau sa fie doar "Membrii VIP:"

Sma-ul care l-am gasit:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"

new const g_szBeginning[ ] = "Membrii VIP"
new g_szMessage[ 256 ];

new SyncHudMessage;

public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );

set_task( 1.0, "TaskDisplayVips", _, _, _, "b", 0 );
SyncHudMessage = CreateHudSyncObj( );

// Add your code here...
}

public TaskDisplayVips( )
{
static iPlayers[ 32 ];
static iPlayersNum;

get_players( iPlayers, iPlayersNum, "ch" );
if( !iPlayersNum )
return;

static iVipsConnected, szVipsNames[ 128 ], szName[ 32 ];
//formatex( szVipsNames, sizeof ( szVipsNames ) -1, "" ); // Is this needed ?
iVipsConnected = 0;

static id, i;
for( i = 0; i < iPlayersNum; i++ )
{
id = iPlayers[ i ];
if( get_user_flags( id ) & read_flags( "l" ) )
{
get_user_name( id, szName, sizeof ( szName ) -1 );

add( szVipsNames, sizeof ( szVipsNames ) -1, szName );
add( szVipsNames, sizeof ( szVipsNames ) -1, "^n" );

iVipsConnected++;
}
}

formatex( g_szMessage, sizeof ( g_szMessage ) -1, "%s ( %i )^n%s",
g_szBeginning, iVipsConnected, szVipsNames );

set_hudmessage( 25, 255, 25, 0.01, 0.25, 0, 0.0, 1.0, 0.1, 0.1, -1 );
ShowSyncHudMsg( 0, SyncHudMessage, g_szMessage );

}


formatex( g_szMessage, sizeof ( g_szMessage ) -1, "%s %i ^n%s",


02 Aug 2018 00:18
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Nu ai inteles, vreau sa apara doar Membrii VIP: si dedesupt numele la vipi, am incercat tot felul de "%s%s" "%s^n" s.a.m.d


02 Aug 2018 07:25
Profile multumesc WWW
Fost moderator
Fost moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1612
Location: Constanta
Detinator Steam: Da
CS Status: Nope
Detinator server CS: Nope
SteamID: Nope
Reputatie: Fost Moderator
Fond eXtream: 0
Testat | Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"

new const g_szBeginning[ ] = "Membrii VIP"
new g_szMessage[ 256 ];

new SyncHudMessage;

public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );

set_task( 1.0, "TaskDisplayVips", _, _, _, "b", 0 );
SyncHudMessage = CreateHudSyncObj( );

// Add your code here...
}

public TaskDisplayVips( )
{
static iPlayers[ 32 ];
static iPlayersNum;

get_players( iPlayers, iPlayersNum, "ch" );
if( !iPlayersNum )
return;

static szVipsNames[ 128 ], szName[ 32 ];
formatex( szVipsNames, sizeof ( szVipsNames ) -1, "" ); // Is this needed ?

static id, i;
for( i = 0; i < iPlayersNum; i++ )
{
id = iPlayers[ i ];
if( get_user_flags( id ) & read_flags( "l" ) )
{
get_user_name( id, szName, sizeof ( szName ) -1 );

add( szVipsNames, sizeof ( szVipsNames ) -1, szName );
add( szVipsNames, sizeof ( szVipsNames ) -1, "^n" );
}
}

formatex( g_szMessage, sizeof ( g_szMessage ) -1, "%s:^n%s", g_szBeginning, szVipsNames );

set_hudmessage( 25, 255, 25, 0.01, 0.25, 0, 0.0, 1.0, 0.1, 0.1, -1 );
ShowSyncHudMsg( 0, SyncHudMessage, g_szMessage );

}


Print
| Afiseaza codul
Image

_________________
:information_source: Ofer Servere Counter-Strike 1,6 moca la 10 euro
Image


02 Aug 2018 08:21
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Rezolvat, mersi.


02 Aug 2018 09:59
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
EDIT: am gresit, ma scuzati !!


02 Aug 2018 21:26
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Barlap and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group