-
Hy Az a bajom,hogy ha felmegyek egyedül akor ezt írja 1 / 64 de ha feljön a haverom akkor már 3 / 64
Ha lemegyek akkor megint 1 / 64 de ha vissza akkor megint 3 / 64 ezt valaki kitudná javítani?
Elõre is kösz a helpet
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;
}
-
Még mindig ugyan úgy számol....:/
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;
}
-
Hy Az a bajom,hogy ha felmegyek egyedül akor ezt írja 1 / 64 de ha feljön a haverom akkor már 3 / 64
Ha lemegyek akkor megint 1 / 64 de ha vissza akkor megint 3 / 64 ezt valaki kitudná javítani?
Elõre is kösz a helpet
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;
}
-
Még mindig ugyan úgy számol....:/
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;
}