Jump to content
  • 0

Cum fac ca un player sa poata cumpara mai multe case?


vidoedaniel

Question

2 answers to this question

Recommended Posts

  • 0

Sunt mai multe metode, daca sistemul tau de case este facut bine mai dynamic sa zic asa ai putea doar sa adaugi la comanda de buyhouse sa nu se mai treaca casa pe variabila ci pur si simplu sa ii seteze hOwner nunele playerului iar comenzile de casa sa fie restrictionate nu din pHousekey==0 ci din strmatch playerbame hOwner dar este mai complicat si mai greu de inteles daca nu esti familiarizat cu scripurile. Ai putea crea o variabila nou in tabel si gm pHousekey2 iar la buyhouse adaugi la restrictia de "ai deja o casa" if (playerinfo playerid phouse!=999)  un && playerinfo playerid phouse2 !=999  iar apoi cand se seteaza variabila de phousekey in idul casei modifici 

if ( playerinfo playerid phousekey !=999) phousekey = houseid

else  phousekey2 = houseid

Dad cum spuneam scriptul de adaugare slot pentru casa este mai complex pentru incepatori sa zic asa.

 

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

  • 0
Acum 13 ore, vidoedaniel a spus:

Titlul spune tot... 

folosesti mai multe variabile in acre sa stochezi id-ul caselor, cand jucatorul da buy la o casa sau face trade cu alt jucator verifici daca are pe 0 sau valoarea care reprezinta la tine in gamemode ca acel jucatopr nu are casa in cel putin o varabila care stocheaza idul casei pe care acesta o detine.

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
Answer this question...

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