Tess:
#include <a_samp>
#include <zcmd>
#define DIALOG_0 100
CMD:skin(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST, \"Válassz skint\", \"Rendõr\\nMentõs\\nTûzoltó\", \"Rendben\", \"Kilép\");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_0)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, 0x001affAA, \"Rendõr lettél\");
SetPlayerSkin(playerid, 283);
}
if(listitem == 1)
{
SendClientMessage(playerid, 0xad2828AA, \"Mentõs lettél\");
SetPlayerSkin(playerid, 276);
}
if(listitem == 2)
{
SendClientMessage(playerid, 0xffe600AA, \"Tûzoltó lettél\");
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, 277);
}
}
}else{
SendClientMessage(playerid, 0x00ff55AA, \"Kiléptél a dialogból\");
}
}
return 1;
}
CMD:felmond(playerid, params[])
{
SendClientMessage(playerid, 0x00ff55AA, \"Felmondtál a munkábol.Kaptál egy sima skint\");
SetPlayerSkin(playerid, 21);
}
return 1;
}