GetPlayerSkin[Help]
#2

You can do it with a global variable. Example :

Код:
//It will store the players' skin
new iPlayerSkin[ MAX_PLAYERS ];

public OnPlayerCommandText( playerid, cmdtext[ ] ) {
  if( strcmp( "/onduty", cmdtext, true ) == 0 ) {
    //Store the actual skin
    iPlayerSkin[ playerid ] = GetPlayerSkin( playerid );
    //Other codes... ( for example SetPlayerSkin... )
    return 1;
  }

  if( strcmp( "/offduty", cmdtext, true ) == 0 ) {
    //Load the stored skin
    SetPlayerSkin( playerid, iPlayerSkin[ playerid ] );
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
GetPlayerSkin[Help] - by Steven82 - 27.03.2010, 16:24
Re: GetPlayerSkin[Help] - by ZeRo_HUN - 27.03.2010, 16:28
Re: GetPlayerSkin[Help] - by HuRRiCaNe - 27.03.2010, 16:29
Re: GetPlayerSkin[Help] - by Torran - 27.03.2010, 16:50
Re: GetPlayerSkin[Help] - by HuRRiCaNe - 27.03.2010, 20:05
Re: GetPlayerSkin[Help] - by Torran - 27.03.2010, 20:34
Re: GetPlayerSkin[Help] - by Steven82 - 27.03.2010, 21:08

Forum Jump:


Users browsing this thread: 2 Guest(s)