A Question about Dialogs
#1

Hello, sorry for such a silly question but I made a dialog and I just wonder how can I move it to a interior(24/7), so it will work only there, cause now I can activate the dialog window anywhere.

-Thank you
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerInterior
https://sampwiki.blast.hk/wiki/InteriorIDs

Get the players interior, if it work, return 1, if not, return it 0.
Reply
#3

Ok but tell me where should I actually put the GetPlayerInterior line to in my script?
Reply
#4

You can do it like this

pawn Код:
COMMAND:dialog(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,2.0, the coords of the 24/7 store)) return SendClientMessage(playerid, -1, "You need to be in the 24/7 store"); // the "2.0" is how many meters the player should be in before the command is available
    else
    {
        ShowPlayerDialog(playerid, 999, YourDialogStyle?, "Your dialog", "Select", "Exit"); // change it to your style
        return 1;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)