Jump to content
  • 0

[Intrebare] Race


cOBRa

Question

Problema intalnita (descriere):Nu stiu cum pot face pozitia unui jucator la sistemul de race, adica ceva gen Lucul 3/10
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):-
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

new pozitie[MAX_PLAYERS];

new nrlocuri;

    Cand cursa incepe:

nrlocuri = 1;

    Cand un jucator termina cursa (ia ultimul checkpoint)

pozitie[playerid] = nrlocuri;

nrlocuri++;

    Si cand toti au terminat cursa : 

nrlocuri = 0;

pozitie[playerid] = 0; 

    Cam asta e baza la care m-am gandit.

  • Upvote 1
Link to comment
Share on other sites

  • 0

Este acelasi lucru, creezi textdrawul si atunci cand ajungi in ultimul checkpoint vei folosi  format " locul %d este %s " nrlocuri, GetName

Si vei folosi textdrawsetstring

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.