Jump to content
  • 0

Problema - /duty


valelele

Question

1 answer to this question

Recommended Posts

  • 0

Trebuie sa faci o variabila inainte de a ii seta skinul de PD prin care sa salvezi skinul precedent. Foloseste "GetPlayerSkin( playerid )"

 

EX:

//Global

new PlayerOldSkin[ MAX_PLAYERS ];

//In comanda folosesti astea

1. Cand e duty

PlayerOldSkin[ playerid ] = GetPlayerSkin( playerid );

SetPlayerSkin( playerid, pd skin );

2. La off duty

SetPlayerSkin( playerid, PlayerOldSkin[ playerid ] );

!! Ai grija sa resetezi variabila PlayerOldSkin[ playerid ] la OnPlayerConnect/Disconect si cand iese din duty.

 

Tu avand deja PlayerInfo[ playerid ][ pSkin ] inlocuieste doar unde e variabila exemplul ce ti am dat o mai sus. ( PlayerOldSkin[ playerid ] ).

Edited by FaLLenGirL
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.