Function to be used when a player enter's an interior?
#1

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?
Reply
#2

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;
}
Reply
#3

Thank you, Jack. (If I may address you as such.)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)