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

Question

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

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

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.