Tessék, #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, \"Max Playerek száma : 50 / X\" ); return 1;}public OnPlayerConnect ( playerid ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}public OnPlayerDisconnect(playerid, reason){ for(new g=0; g < GetMaxPlayers(); g++) if(IsPlayerConnected(g)) pCount--; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;} Lecsatlakozáskor miért kell megjeleníteni a játékosnak a textdraw-ot? \ [/quote]Azt már nem én írtam. xD
Tessék, #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, \"Max Playerek száma : 50 / X\" ); return 1;}public OnPlayerConnect ( playerid ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}public OnPlayerDisconnect(playerid, reason){ for(new g=0; g < GetMaxPlayers(); g++) if(IsPlayerConnected(g)) pCount--; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", 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, \"Max Playerek száma : 50 / X\" ); return 1;}public OnPlayerConnect ( playerid ){ for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount++; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}public OnPlayerDisconnect(playerid, reason){ for(new g=0; g < GetMaxPlayers(); g++) if(IsPlayerConnected(g)) pCount--; format (maxplayers, sizeof ( maxplayers ), \"Max Playerek száma : 50 /%i\", pCount ); TextDrawSetString ( mps, maxplayers ); TextDrawUseBox (mps , 1 ); TextDrawBoxColor (mps,0x000000AA ); TextDrawColor (mps,0xFFFFFFAA ); TextDrawShowForPlayer (playerid, mps ); return 1;}