Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
Karamel
- Membru, skill 0
- Posts: 27
- Joined: 19 Jul 2018, 17:22
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
-
Contact:
01 Aug 2018, 19:57
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 );
}
-
DanN
- Membru, skill 0
- Posts: 70
- Joined: 30 Sep 2017, 22:12
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: RobertshemA
- SteamID: 84638588213
- Fond eXtream: 0
- Location: Cape Verde
- Has thanked: 1 time
-
Contact:
02 Aug 2018, 00:18
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",
-
Karamel
- Membru, skill 0
- Posts: 27
- Joined: 19 Jul 2018, 17:22
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
-
Contact:
02 Aug 2018, 07:25
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
-
Laurentiu P.
- Fost moderator
- Posts: 2549
- Joined: 10 Jul 2013, 21:26
- Detinator Steam: Da
- Reputatie: Fost super moderator
- Fond eXtream: 100
- Has thanked: 26 times
- Been thanked: 62 times
-
Contact:
02 Aug 2018, 08:21
- 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
-
Karamel
- Membru, skill 0
- Posts: 27
- Joined: 19 Jul 2018, 17:22
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
-
Contact:
-
Karamel
- Membru, skill 0
- Posts: 27
- Joined: 19 Jul 2018, 17:22
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
-
Contact:
02 Aug 2018, 21:26
EDIT: am gresit, ma scuzati !!
-
Users browsing this forum: No registered users and 38 guests