Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:skins(playerid) {
- const MAX_SKINS = 299;
- new subString[16];
- static string[MAX_SKINS * sizeof(subString)];
- if (string[0] == EOS) {
- for (new i; i < MAX_SKINS; i++) {
- format(subString, sizeof(subString), "%i\tID: %i\n", i, i);
- strcat(string, subString);
- }
- }
- return ShowPlayerDialog(playerid, 99999, DIALOG_STYLE_PREVIEW_MODEL, "Select skin", string, "Select", "Cancel");
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
- if (dialogid == 99999) {
- if (response) {
- SetPlayerSkin(playerid, listitem);
- GameTextForPlayer(playerid, "~g~Skin schimbat!", 3000, 3);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment