24.06.2013, 19:30
(
Последний раз редактировалось 5002; 24.06.2013 в 22:39.
)
i make this script
this is about show Duty menu to player when he stay at pickup at lspd
with 3 offer
lspd biker skin
lspd 2
lspd 3
script work correctly
but have a bad problem
when i choose one offer script must style on that offer
but after 1s jump to first offer
script
ShowPlayerDialog
OnDialogResponse
i want script stay on offer i choose
this is about show Duty menu to player when he stay at pickup at lspd
with 3 offer
lspd biker skin
lspd 2
lspd 3
script work correctly
but have a bad problem
when i choose one offer script must style on that offer
but after 1s jump to first offer
script
ShowPlayerDialog
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == LSPDDM)
{
TogglePlayerControllable(playerid,0);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose Skin","LSPD Biker Cop\n2.LSPD 2\n3.LSPD 3","Choose","exit");
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(LSPDDMenu)
{
case 1:
{
switch(listitem)
{
case 0:
{
SetPlayerSkin(playerid,284);
TogglePlayerControllable(playerid,1);
}
case 1:
{
SetPlayerSkin(playerid,283);
TogglePlayerControllable(playerid,1);
}
case 2:
{
SetPlayerSkin(playerid,282);
TogglePlayerControllable(playerid,1);
}
}
}
}
}
}

