setting a checkpoint for a spicific interior?
#3


Check for the player's virtual worl and interior when he enters the checkpoint. Simple :

Код:
OnPlayerEnterCheckpoint(playerid)
{
  new vw=GetPlayerVirtualWorld(playerid);
  new interior=GetPlayerInterior(playerid);
  if(vw== yourvirtualworld && interior == yourinterior) SetPlayerInterior(playerid,yourinterior); // or whatever
  else return SendClientMessage(playerid,0xffff00aa,"You are not in the same interior as the whatever");
  
  return 1;
}
Reply


Messages In This Thread
setting a checkpoint for a spicific interior? - by Owenlishious - 03.06.2010, 00:45
Re: setting a checkpoint for a spicific interior? - by [SF]OutLawZ - 20.06.2010, 10:42
Re: setting a checkpoint for a spicific interior? - by DJDhan - 20.06.2010, 10:48
Re: setting a checkpoint for a spicific interior? - by Owenlishious - 21.06.2010, 00:44
Re: setting a checkpoint for a spicific interior? - by (SF)Noobanatior - 21.06.2010, 04:53

Forum Jump:


Users browsing this thread: 2 Guest(s)