You could do something like this
pawn Код:
public OnPlayerConnect
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Army skin \n Cop skin", "Ok", "Cancel");
return 1;
}
then for the dialog responce
pawn Код:
if(dialogid == 1)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, 0xFFFFFFAA, "You have switched to a army skin.");
ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, 2, "Spawn 1 \n Spawn 2");
SetPlayerSkin(playerid, 287);
}
case 1:
{
SendClientMessage(playerid, 0xFFFFFFAA, "You have switched to a cop skin.");
ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, 2, "Spawn 1 \n Spawn 2");
SetPlayerSkin(playerid, 277);
}
}
}
return 1;
}
if(dialogid == 2)
{
if(responce)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 192, 1944, 1313);
SendClientMessage(playerid, color, "Youve spawned at sf AP");
}
case 1:
{
SetPlayerPos(playerid, 134,245,2435);
SendClientMessage(playerid, color, "Youve spawned at Ls AP");
}
}
}
return 1;
}
return 1;
}
Sorry for the bad indentations ;P