XD
Eu vou lhe explicar eu vou ao departamento policial e faзo /locker para abrir o armario (abre um dialogo)
pawn Код:
else if(dialogid == 5)
{
new string[128];
if(response)
{
switch(listitem)
{
case 0:
{
if(!PlayerInfo[playerid][pFacDuty])
{
PlayerInfo[playerid][pFacDuty] = 1;
SetPlayerColor(playerid, TRANSPARENT_BLUE);
format(string, sizeof(string), "* %s grabs their badge from the locker.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
return 1;
}
else
{
PlayerInfo[playerid][pFacDuty] = 0;
SetPlayerColor(playerid, TRANSPARENT_WHITE);
SetPlayerArmour(playerid, 0);
format(string, sizeof(string), "* %s places their badge in the locker.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
return 1;
}
}
case 1: //pegar armas policiais
{
SSSShowDialog(playerid, 6);
}
case 2: //pegar skin policial
{
ShowModelSelectionMenu(playerid, pdskins, "Select Uniform");
}
case 3: //pegar minha skin de novo
{
ShowModelSelectionMenu(playerid, undercover, "Select Skin");
}
case 4: //pegar colete e vida
{
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
}
}
}
}
assim й o meu sistema de armario...
bem no caso 3 й onde queria que ele carrega-se e ele volta-se a setar a skin que tinha que supostamente devia tar la este comando
pawn Код:
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
mas mesmo que apague o
pawn Код:
ShowModelSelectionMenu(playerid, undercover, "Select Skin");
aparece sempre uma tabela a dizer "Select Skin" com as skins todas do gta :S
vou postar aqui tudo undercover:
pawn Код:
new undercover = mS_INVALID_LISTID;
public OnGameModeInit()
{
undercover = LoadModelSelectionMenu("undercover.txt");
//---------------------------------
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == undercover)
{
if(response)
{
new string[128];
PlayerInfo[playerid][pModel] = modelid;
SetPlayerSkin(playerid, modelid);
format(string, sizeof(string), "* %s takes clothes from the locker.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}
return 1;
}
Jб fui a pasta scriptfiles apagar o undercover.txt tinha lб as ids de todas as skins, apaguei mesmo o ficheiro .txt, depois de apagar esse ficheiro o case 3: nao funciona :S
EDIT: se desse maneira de colocar as skins pModel1, pModel2, pModel3 no Select Skin do undercover era fixe mas nao consigo