HELP with APPLYING commands for interriors
#6

Quote:
Originally Posted by Assyria
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/drinks", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What would you like to drink?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");

		return 1;
	}
	return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
(here is the menu..)
{
first search on the internet ...hold on... Aha Here are the Interior IDs .

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drinks", cmdtext, true, 10) == 0)
    {
        if (GetPlayerInterior(playerid)==interiorid) // Replace Interior ID With The Interior ID you want from the link i gave you
        {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What would you like to drink?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");
        }
        else return SendClientMessage(playerid,0xAA0000AA,"Youre Not In The Right Place!");
        return 1;
    }
    return 0;
}
if you want that you can be in more interiors to purchase it add
pawn Код:
|| interiorid2
Add That Here :
pawn Код:
if (GetPlayerInterior(playerid)==interiorid || interiorid) // You Can Add as many as you want .

Reply


Messages In This Thread
HELP with APPLYING commands for interriors - by Assyria - 20.03.2010, 22:48
Re: HELP with APPLYING commands for interriors - by Micko9 - 20.03.2010, 23:21
Re: HELP with APPLYING commands for interriors - by Assyria - 20.03.2010, 23:26
Re: HELP with APPLYING commands for interriors - by Micko9 - 20.03.2010, 23:28
Re: HELP with APPLYING commands for interriors - by Assyria - 20.03.2010, 23:29
Re: HELP with APPLYING commands for interriors - by Micko9 - 20.03.2010, 23:36
Re: HELP with APPLYING commands for interriors - by Assyria - 21.03.2010, 01:01

Forum Jump:


Users browsing this thread: 1 Guest(s)