Function to be used when a player enter's an interior? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Function to be used when a player enter's an interior? (
/showthread.php?tid=294560)
Function to be used when a player enter's an interior? -
indi - 02.11.2011
Well, another newb here.
I want to know if there is a function like umm
pawn Код:
public OnPlayerEnterInterior(playerid,interiorid)
{
SetPlayerbllablabla(code continues);
return 1;
}
Is it posibble?
Re: Function to be used when a player enter's an interior? -
Jack_Leslie - 02.11.2011
Quote:
Originally Posted by indi
Well, another newb here.
I want to know if there is a function like umm
pawn Код:
public OnPlayerEnterInterior(playerid,interiorid) { SetPlayerbllablabla(code continues); return 1; }
Is it posibble?
|
pawn Код:
forward OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid);
I'm not sure what versions of SA-MP supports that, but I know a version does...
EDIT:
0.3c RC2 does.. so just use:
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
//code
return 1;
}
Re: Function to be used when a player enter's an interior? -
indi - 02.11.2011
Thank you, Jack. (If I may address you as such.)