Jump to content

Recommended Posts

Posted (edited)

am un gamemode bigzone dc cand intru si dau pe sex male imi da skin de cj? si cand intru imi apare skin-u setat inainte de disconect dar dupa mi-l da iar pe cj. Cum fac?

Edited by Benq.V11
Posted (edited)

Pai pune sa salveze skinul intr-o variabila, si cand se conecteaza sa ii seteze acea variabila ca skin, uite un exemplu pentru a salva:

 

la OnPlayerDisconnect: pInfo[pla yerid][pSkin] = GetPlayerSkin(playerid);

si la OnPlayerSpawn: SetPlayerSkin(playerid, pInfo[playe rid][pSkin]);

 

- bineinteles ca in loc de acele variabile le folosesti pe ale tale.

- va trebui sa le salvezi in baza de date pentru a ramane si dupa deconectare.

- sa le incarci din baza la conectarea jucatorului.

Edited by Un4m3d_Hokage

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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

By using this site, you agree to our Terms of Use. 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.

moduri samp