29/07/2021 11:08 
	
	
	
		Testa aí
	
	
	
Código:
new pSkinPM[MAX_PLAYERS];
public OnPlayerDisconnect(playerid)
{
    new file[60];
    format(file, sizeof(file), "/CopSkin/%s.ini", GetPlayerNameEx(playerid));
    if(fexist(file))
    {
        switch(GetPlayerSkin(playerid))
        {
            case 280: DOF2_SetInt(file, "SkinPolicia", 280);
            case 281: DOF2_SetInt(file, "SkinPolicia", 281);
            case 282: DOF2_SetInt(file, "SkinPolicia", 282);
            case 283: DOF2_SetInt(file, "SkinPolicia", 283);
             case 284: DOF2_SetInt(file, "SkinPolicia", 284);
             case 285: DOF2_SetInt(file, "SkinPolicia", 285);
             case 286: DOF2_SetInt(file, "SkinPolicia", 286);
              case 287: DOF2_SetInt(file, "SkinPolicia", 287);
              case 288: DOF2_SetInt(file, "SkinPolicia", 288);
        }
    }
}
public OnPlayerSpawn(playerid)
{
    new file[60];
    format(file, sizeof(file), "/CopSkin/%s.ini", GetPlayerNameEx(playerid));
    if(fexist(file))
    {
        pSkinPM[playerid] = DOF2_GetInt(file, "SkinPolicia");
        SetPlayerSkin(playerid, pSkinPM[playerid]);
    }
}Discente de Sistemas de Informação no Centro Federal de Ensino Tecnológico(CEFET/RJ)
Programador SA-MP desde 2012
Programador SA-MP desde 2012
Não envie dúvidas por inbox, crie um tópico. Sua dúvida pode ser a dúvida de outro alguém, e seu tópico ajudará outras pessoas no futuro.
