Jump to content
  • 0

Question

Posted

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

4 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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