Jump to content

Cum vad ticks in timp real pe server, ajutor


Byzzi4life

Recommended Posts

Poti face o comanda de exemplu mai usoara, si de aici iti dai tu seama cum sa faci un textdraw

CMD:tick(playerid, params[])

{

    new ticks = GetServerTickRate();

    si mai jos faci un format in care scrii Server Tick Rate: %s", ticks);

    trimiti mesajul cu sendclientmessage si urmatoarea linie returnezi 1

}  

in special foloseste-te de functia GetServerTickRate()

Link to comment
Share on other sites

Creezi un textdraw, si depinde cand vrei sa fie afisat, daca vrei sa fie de cand te conectezi, faci in felul urmator:

Te duci la OnPlayerConnect si adaugi asa

new string[25];

                format(string, sizeof(string), "Tick: %s", GetServerTickRate());
                PlayerTextDrawSetString(playerid, NUMELE_TEXTDRAW, string);

                PlayerTextDrawShow(playerid, NUMELE_TEXTDRAW);

 

acolo la NUMELE_TEXTDRAW pui exact cum ai tu numele texdraw-ului pe care il faci cu tick, de exemplu "Textdraw1" sau cum vrei tu sa il denumesti

Edited by Maddo
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

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

Guest
Reply to this topic...

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