|
http://laska-samp.biz/articles/pawn-book/koding/sozdpodmenu |
°•°•° Проект SAMP - Romashka [0.3e] ™18+™ °•°•° :: Теория :: Pawn :: Кодинг |
Создание подменю
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST," Базы ™Romashka 18+™ ip сервера 46.174.50.46:7784"," База 1 ™\n\
{FEAE03}™ Далее ™",".:Ок:.",".:Отмена:.");
=====================
if(dialogid == 1000)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,1985.8461,702.1160,10.8671);
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,893,DIALOG_STYLE_LIST,"Дрифт зоны ™Romashka 18+™ ip сервера 46.174.50.46:7784","\
{3A2BFF}База 2™\n\
{3A2BFF}База 3™\n\
{3A2BFF}База 4™\n\
{3A2BFF}База 5™\n\
{3A2BFF}База 6™","Ок"," Отмена");
}
}
}
======================
if(dialogid == 893)
{
if(response)
{
if(listitem == 0)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,-321.9529,1537.6664,75.5625);
format(GlobalInfo, sizeof(GlobalInfo), "[Инфо] %s зашел на Базу 2",PlayerName(playerid));
SendClientMessageToAll(0x6C6CFFAA, GlobalInfo);
return 1;
}
if(listitem == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,-3087.1345,-3194.6936,47.6537);
format(GlobalInfo, sizeof(GlobalInfo), "[Инфо] %s зашел на Базу 3",PlayerName(playerid));
SendClientMessageToAll(0x6C6CFFAA, GlobalInfo);
return 1;
}
if(listitem == 2)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,-2516.5, 602.29998779297,132.60000610352);
format(GlobalInfo, sizeof(GlobalInfo), "[Инфо] %s зашел на Базу 4",PlayerName(playerid));
SendClientMessageToAll(0x6C6CFFAA, GlobalInfo);
return 1;
}
if(listitem == 3)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,2336.3999023438,- 1392.1999511719,42.799999237061);
format(GlobalInfo, sizeof(GlobalInfo), "[Инфо] %s зашел на Базу 5",PlayerName(playerid));
SendClientMessageToAll(0x6C6CFFAA, GlobalInfo);
return 1;
}
if(listitem == 4)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,-1392.1677,-2676.3577,13.3821);
format(GlobalInfo, sizeof(GlobalInfo), "[Телепорт] %s зашел на Базу 6",PlayerName(playerid));
SendClientMessageToAll(0x6C6CFFAA, GlobalInfo);
return 1;
}
}
}
Опубликовано 30 December 2015