Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Am modelul asta de text drawn care arata cati playeri cant onlice,dar cand ese cineva nu se mia schimba.Ex:Daca sunt doi playeri intrati si unul ese la text drawn ramane 2 intrati si daca apesi "tab"si te uiti este decat un playeri.uitati poze:

samp001st.png

[img width=500 height=375] samp002eg.png

UITATI FS DE TEST DRAWN.

public OnFilterScriptInit()

{

        // TextDraw for Players Online

players = TextDrawCreate(540.000000, 433.000000, "_");

TextDrawAlignment(players,0);

TextDrawBackgroundColor(players, 0x000000ff);

TextDrawFont(players, 3);

TextDrawLetterSize(players,0.499999,1.500000);

TextDrawColor(players,0xffff00ff);

TextDrawSetOutline(players, 1);

TextDrawSetProportional(players, 1);

TextDrawSetShadow(players,1);

for(new i; i < MAX_PLAYERS; i ++)

{

if(IsPlayerConnected(i))

{

TextDrawShowForPlayer(i, players);

}

}

return 1;

}

public OnFilterScriptExit()

{

TextDrawHideForAll(players);

TextDrawDestroy(players);

return 1;

}

stock GetOnLinePlayers()

{

new OnLine;

for(new i, g = GetMaxPlayers(); i < g; i++)

if(IsPlayerConnected(i))

OnLine++;

return OnLine;

}

public OnPlayerConnect(playerid)

{

    new strings[15];

format(strings, 15,"PLAYERI: %d",GetOnLinePlayers());

TextDrawSetString(players, strings);

TextDrawShowForPlayer(playerid, players);

return 1;

}

Ce trebuie sa aduag sa mearga corect?

Respecta Si Vei Fi Respectat !!!

2 answers to this question

Recommended Posts

Posted

public OnPlayerDisconnect( playerid, reason )

{

new strings[ 15 ];

format( strings, 15, "PLAYERI: %d", GetOnLinePlayers( ) );

TextDrawSetString( players, strings );

for( new i = 0; i < MAX_PLAYERS; i++ ) TextDrawShowForPlayer( i, players );

return ( 1 );

}

142sj0l.png

Underground-GFX

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.