new Text: mps; new pCount = 0; new maxplayers[ 128 ]; public OnGameModeInit() { mps = TextDrawCreate(88.000000, 320.000000, \"Jatekosok x - 64\");TextDrawAlignment(mps, 2);TextDrawBackgroundColor(mps, -16776961);TextDrawFont(mps, 1);TextDrawLetterSize(mps, 0.559997, 2.499999);TextDrawColor(mps, 255);TextDrawSetOutline(mps, 1);TextDrawSetProportional(mps, 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; }
new Text: mps; new pCount = 0; new maxplayers[ 128 ]; public OnGameModeInit() { mps = TextDrawCreate(88.000000, 320.000000, \"Jatekosok x - 64\"); TextDrawAlignment(mps, 2); TextDrawBackgroundColor(mps, -16776961); TextDrawFont(mps, 1); TextDrawLetterSize(mps, 0.559997, 2.499999); TextDrawColor(mps, 255); TextDrawSetOutline(mps, 1); TextDrawSetProportional(mps, 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; } public OnPlayerDisConnect( playerid, reason ) { 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; }
public OnGameModeInit(){mps = TextDrawCreate(88.000000, 320.000000, \"Jatekosok x - 64\");TextDrawAlignment(mps, 2);TextDrawBackgroundColor(mps, -16776961);TextDrawFont(mps, 1);TextDrawLetterSize(mps, 0.559997, 2.499999);TextDrawColor(mps, 255);TextDrawSetOutline(mps, 1);TextDrawSetProportional(mps, 1);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 );TextDrawShowForPlayer (playerid, mps );return 1;}public OnPlayerDisconnect(playerid){for ( new g = 0; g < GetMaxPlayers( ); g++ ) if ( IsPlayerConnected ( g ) ) pCount--;format (maxplayers, sizeof ( maxplayers ), \"Jatekosok: %i / 64\", pCount );TextDrawSetString ( mps, maxplayers );TextDrawShowForPlayer (playerid, mps );return 1;}
new Text: mps; new pCount = 0; new maxplayers[ 128 ]; public OnGameModeInit() { mps = TextDrawCreate(88.000000, 320.000000, \"Jatekosok x - 64\");TextDrawAlignment(mps, 2);TextDrawBackgroundColor(mps, -16776961);TextDrawFont(mps, 1);TextDrawLetterSize(mps, 0.559997, 2.499999);TextDrawColor(mps, 255);TextDrawSetOutline(mps, 1);TextDrawSetProportional(mps, 1); } public OnPlayerConnect(playerid) { pCount = 0; 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; }