Jump to content

Recommended Posts

Posted

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()

Posted (edited)

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
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.