Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salut, am si eu o intrebare. Tocmai m-am apucat sa invat mysql, mi-am facut sistem de login/register(multumesc foarte mult lui w1dualk(sau cum se scrie), va fi trecut la credits) si admin sistem. Intrebarea este: Cum ar trebui sa arata un sistem de race/drift si cum are trebui sa incep? Precizez ca doresc sa fac un server de stunt de la 0.

Posted

Nu trebuie pe mysql :| decat daca vrei sa schimbi toata ziua checkpointurile si asta ar complica mult.

incepi cu variabila new InRace[max)players];  si cand dai /race   InRace[playerid] = 0;  si SetPlayerRaceCheckPoint().... si dupa cand intri in racecheckpoint setezi pe urmatorul

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted

Nu trebuie pe mysql :| decat daca vrei sa schimbi toata ziua checkpointurile si asta ar complica mult.

incepi cu variabila new InRace[max)players];  si cand dai /race   InRace[playerid] = 0;  si SetPlayerRaceCheckPoint().... si dupa cand intri in racecheckpoint setezi pe urmatorul

Nu intelegi, eu doresc la finalul cursei locurile 1/2/3 sa primeasca race points si coins, acestea fiind pe mysql.

Posted (edited)

Adaugi o noua variabila in gm    new PlacePlayer= INVALID_PLAYER_ID ;

La onplayerentercheckpoint sau racecheckpoint   

If PlacePlayer == 0

PlacePlayer = 1 ;

GivePlayerMiney(playerid,1000);

SendClientMessagetoall -1 x este pe primul loc

 

If PlacePlayer == 1

PlacePlayer = 2 ;

La fel cu mesaju dar zice ca a terminat pe locu 2

 

If PlacePlayer == 2

PlacePlayer = INVALID_PLAYER_ID;

Mesajul ca a terminat pe 3

 

 

Si cand dai /race sau cum ai setezi PlacePlayer = 0;

 

Sper ca ai inteles am scris de pe telefon

Scriptul nu nici pe departe ce am scris eu dar aia e idea nimeni nu ti-l face complet

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

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.