Same Interior Help
#2

You were heading in the right direction.

Use different virtual worlds for each of the different locations.

Modify OnPlayerEnterStreamedCheckpoint
add in a check for players virtual world, to know which one of the ammunations they are in, and return them accordingly.

ex. for #2
pawn Код:
stock OnPlayerEnterStreamedCheckpoint(playerid, CPiD)
{
  if(CPiD == CP1)//Regular player Entrance LV
  if(GetPlayerScore(playerid) == 99) return SendClientMessage(playerid,red,"You Do Not Have Enough Score To Enter To The Regular Player Club");{
   SetPlayerInterior(playerid, 12);
   SetPlayerVirtualWorld(playerid, 1); //might as well align the CP1 with VW1 etc
   SetPlayerPos(playerid, 2324.4096,-1146.4459,1050.7100);
  }
//Then wherever your return checkpoint is, guessing thats maybe CP2?
  if(CPid == CP2) //The return checkpoint inside of ammunation
  {
    if(GetPlayerVirtualWorld(playerid) == 1)
    {
      //return the player to Regular player Entrance LV
      //remember to set their virtual world back to 0 again
    }
  }
  return 1;
}
Reply


Messages In This Thread
Same Interior Help - by Lesinorion - 14.02.2010, 21:11
Re: Same Interior Help - by mansonh - 15.02.2010, 05:34

Forum Jump:


Users browsing this thread: 2 Guest(s)