[Ajuda] Skin ORG
#4

Vamos supor que vocк criou um enumerador/variбvel com a funзгo para armazenar o skin do jogador.
Entгo vamos aos exemplos.
Pelo menos procure entender o que estб escrito.
PHP код:
new SAVE_SKIN[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    new 
str[38], nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomesizeof(nome));
    
format(strsizeof(str), "Skin's/%s.ini"nome);
    if(!
fexist(str))
    {
        
DOF2::CreateFile(str);
        
DOF2::SetInt(str"Skin"SAVE_SKIN[playerid]);
    }
    else
        
SAVE_SKIN[playerid] = DOF2::GetInt(str"Skin");
    
SetPlayerSkin(playeridSAVE_SKIN[playerid]);
    return 
true;
}
CMD:skinorg(playerid)
{
    
SAVE_SKIN[playerid] = SetPlayerSkin(playerid209);
    
SendClientMessage(playerid, -1"Sua skin serб essa sempre que retonar ao servidor.");
    return 
true;

Reply


Messages In This Thread
Skin ORG - by SnowBorn - 09.11.2017, 18:42
Re: Skin ORG - by C4rtm4n - 09.11.2017, 18:45
Re: Skin ORG - by Gguiz - 09.11.2017, 18:49
Re: Skin ORG - by tGod - 09.11.2017, 19:03
Re: Skin ORG - by SnowBorn - 09.11.2017, 19:06
Re: Skin ORG - by C4rtm4n - 09.11.2017, 19:08
Re: Skin ORG - by Marllun - 09.11.2017, 19:11
Re: Skin ORG - by C4rtm4n - 09.11.2017, 19:16
Re: Skin ORG - by Gguiz - 09.11.2017, 19:20
Re: Skin ORG - by Don_Speed - 09.11.2017, 20:03

Forum Jump:


Users browsing this thread: 2 Guest(s)