It is currently 16 Dec 2018 10:21



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 16:22
Posts: 23
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 18:57
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 21:12
Posts: 52
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",


01 Aug 2018 23:18
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 16:22
Posts: 23
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 06:25
Profile multumesc WWW
Online
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2110
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
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

_________________
Țepe date | Afiseaza codul
Ce-oi vrea să vezi?


02 Aug 2018 07:21
Profile multumesc
Membru, skill 0
Membru, skill 0

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


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

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


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

Who is online

Users browsing this forum: LondoN eXtream and 66 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