#include < a_samp >new Text: mps;new pCount = 0;new maxplayers[ 128 ];#define COLOR_WITHE 0xFFFFFFAA#define COLOR_BLACK 0x000000AApublic OnGameModeInit( ){ mpss = TextDrawCreate( 1.0, 5.6, \"Játékosok : X / 30\" ); return 1;}public OnPlayerConnect ( playerid ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Játékosok: %i / 30\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}
#include < a_samp >new Text: mps;new pCount = 0;new maxplayers[ 128 ];#define COLOR_WITHE 0xFFFFFFAA#define COLOR_BLACK 0x000000AApublic OnGameModeInit( ){ mpss = TextDrawCreate( 1.0, 5.6, \"Játékosok : X / 30\" ); return 1;}public OnPlayerConnect ( playerid ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Játékosok: %i / 30\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}
TextDrawShowForPlayer (playerid, mps );
new Text: mps;new pCount = 0;new maxplayers[ 128 ];public OnGameModeInit(){mps = TextDrawCreate(93.000000, 421.000000, \"Jatekosok x / 64\"); return 1;}public OnPlayerConnect(playerid){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Jatekosok: %i / 64\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawColor (mps,0xFF0000AA ); TextDrawShowForPlayer (playerid, mps ); return 1;}
new Text: mps;new pCount = 0;new maxplayers[ 128 ];public OnGameModeInit(){ mps = TextDrawCreate(93.000000, 421.000000, \"Jatekosok x / 30\"); return 1;}public OnPlayerConnect(playerid){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Jatekosok: %i / 30\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawColor (mps,0xFF0000AA ); TextDrawShowForPlayer (playerid, mps ); return 1;}public OnPlayerDisConnect( playerid, reason ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount--; format (maxplayers, sizeof ( maxplayers ), \"Jatekosok: %i / 30\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawColor (mps,0xFF0000AA ); TextDrawShowForPlayer (playerid, mps ); return 1;}