Jump to content

Race sistem mysql


cristyifrim31O

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.