Jump to content
  • 0

Help


maraciukka

Question

Salut, am bagat un TextDraw cu playeri online deasupra mapei ! Problema este: Atunci cand playerul se deconecteaza nu scade numarul de playeri online la texdraw ! Acesta este textdrawul folosit:  https://laleagane.ro/forum/threads/589293-Tutorial-SA-MP-Cum-sa-faci-un-textdraw-sa-arate-jucatorii-online

 

De la ce poate fi?

banner.jpg

                                   

AyqDQca.gif

      

 

 

 

 

Y!M: [email protected]

 

 

 

                     

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Incearca sa pui asta la OnPlayerDisconnect:

for(new i = 0 , i < MAX_PLAYERS, i++)
{   
new strings[15];
    format(strings, 15, "%d/50",GetOnLinePlayers());
    TextDrawSetString(players , strings);
    TextDrawShowForPlayer(i , players);
}
Edited by #Teddy

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

Link to comment
Share on other sites

  • 0

Incearca asa:

stock GetOnLinePlayers()
{
new OnLine;
for(new i, g = GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
OnLine++;
{
}
else
{
OnLine--;
}
}
return OnLine;
}

sau incearca sa pui la OnPlayerUpdate:

new strings[15];
    format(strings, 15, "%d/50",GetOnLinePlayers());
    TextDrawSetString(players , strings);
    TextDrawShowForPlayer(playerid , players);
Edited by #Teddy

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.