What is the fuction of OnPlayerInteriorChange ??
#1

Hello.
What does OnPlayerInteriorChange?
I thought it detect when a player switched to another interior. But it doesn't.
And second question.
Why there isn't even a ClosePlayerDialog(playerid); fuction.
Does somebody know how to close a dialog. (not in OnDialogResponse)
Thanks.
Reply
#2

Well for the closeplayerdialog you can make a define :P
pawn Код:
#define ClosePlayerDialog(%1) ShowPlayerDialog(%1,-1,0,"","","","") //Credits to the guy that made this
And I think you can find the answer on the first question at the sa-mp wiki
Reply
#3

Quote:
Originally Posted by Fj0rtizFredde
Well for the closeplayerdialog you can make a define :P
pawn Код:
#define ClosePlayerDialog(%1) ShowPlayerDialog(%1,-1,0,"","","","") //Credits to the guy that made this
And I think you can find the answer on the first question at the sa-mp wiki
Well thanks for that.
But yea i already noticed that I could find that info on sa-mp wiki.
But the thing is. It doesn't work when I enter a interior.
I gues it doesn't work because I enter on of the interiors by GTA SA.
You know what I mean. The interiors that I can disable with: DisableInteriorEnterExits();

Here is the thing that doesn't work:
Код:
    if(newinteriorid == 1 || newinteriorid == 4 || newinteriorid == 6 || newinteriorid == 7)
		{
	   	SetPlayerShopName(playerid,"FDPIZA");
		}
If this did work. the Weapon menu should be disappeared.
And yes I know the SetPlayerShopName(playerid,"FDPIZA"); works. Because I already tested it in a timer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)