mSelection
#2

Up:
pawn Код:
new skins = mS_INVALID_LISTID;
2. Make a text file called "skins". Insert into it these information:
Код:
ModelID RotX RotY RotZ Zoom
They are TextDraw font 5 settings, Learn more at: https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
After all this, Load your skins file:
pawn Код:
public OnGameModeInit()
{
    skins = LoadModelSelectionMenu("skins.txt");
    return 1;
}
Then , make a cmd o/r anything to show it to the player:
pawn Код:
CMD:test(playerid, params[])
{
   #pragma unused params
    ShowModelSelectionMenu(playerid, skins, "Select Skin");
    return 1;
}
Use this public function to response the player menu call (when he clicks at a model):
pawn Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
Reply


Messages In This Thread
mSelection - by b00m112 - 15.10.2014, 18:22
Re: mSelection - by Sawalha - 15.10.2014, 18:34
Re: mSelection - by b00m112 - 15.10.2014, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)