26.03.2019, 17:19
Quote:
|
Can you show the code? How you're oppening those files and displaying them.
|
Code:
new skinlist = mS_INVALID_LISTID;
public OnGameModeInit()
{
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if( listid == skinlist )
{
if( response )
{
SCM(playerid,-1, "Kupio si odecu/skin za 10$.");
PlayerInfo[ playerid ][ pSkin ] = modelid;
SetPlayerSkin( playerid, modelid );
SavePlayer( playerid );
g_MoneyMinus( playerid, 10 );
}
else SCM(playerid,-1,"You canceled the skin selection.");
return 1;
}
return 1;
}
YCMD:vipskin(playerid, params[], help)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1)
{
ShowModelSelectionMenu( playerid, skinlist, "Choose skin");
}
else
{
SCM(playerid, 1, "You`re not allowed to use this command.");
}
}
return 1;
}


