20.03.2018, 19:59
I need make dialog skins for put in OnPlayerRequestClass, someone help me?? (actually im starting gamemode)
<---- this is im searching.
<---- this is im searching.
for(new i = 0; i < 287; i++)
{
AddPlayerClass(i, x, y, z, 0, 0, 0, 0, 0, 0); //Replace x, y, z to your coordinates.
}
public OnPlayerRequestClass(playerid,classid) {
const MAX_SKINS = 312;
static string[MAX_SKINS * 16];
if (string[0] == EOS) {
for (new i; i < MAX_SKINS; i++) {
format(string, sizeof string, "%s%i\tID: %i\n", string, i, i);
}
}
return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_PREVIEW_MODEL, "Skin Selection Dialog", string, "Select", "Cancel");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
if (dialogid == 0) {
if (response) {
SetPlayerSkin(playerid, listitem);
GameTextForPlayer(playerid, "~g~Skin Changed!", 3000, 3);
}
}
return 1;
}