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