Help with food interiors
#3

Quote:
Originally Posted by Weirdosport
You'd have to store in a variable which one they entered. For example:

pawn Код:
new Entered[MAX_PLAYERS];

//When player enters a "1"
Entered[playerid] = 1;

//When player enters a "2"
Entered[playerid] = 2;

//When player goes to leave:
If(Entered(playerid) == 1) // put outside 1
else //put outside 2
Entered[playerid] = 0;
Thankyou,
Код:
new Entered[MAX_PLAYERS];
I know the new goes at the top but where does the rest go,on onplayerentercheckpoint with my original code?
Like for example this is my code for Cluckin Bell 1 near ammunation
Код:
cp1 = CreateCheckpoint(-2672.1492,258.8858,4.6328, 1.5);
then
Код:
if(cpid == cp1)
  {

  SetPlayerPos(playerid,366.3479,-9.3643,1001.8516);
  SetPlayerInterior(playerid, 9);
  }
So do i reword that to make it so people entering that specific location also exit outside of it?
Reply


Messages In This Thread
Help with food interiors - by Mr_Finnigan - 13.07.2009, 13:29
Re: Help with food interiors - by Weirdosport - 13.07.2009, 13:39
Re: Help with food interiors - by Mr_Finnigan - 13.07.2009, 13:46
Re: Help with food interiors - by Mr_Finnigan - 13.07.2009, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)