SA-MP Forums Archive
setting a checkpoint for a spicific 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: setting a checkpoint for a spicific interior? (/showthread.php?tid=152214)



setting a checkpoint for a spicific interior? - Owenlishious - 03.06.2010

hellow,

anyways im having some issues with checkpoint...

for some reason i see some checkpoints that i dont even remember adding...

but i think i know why...


even tho interiors are set in a differrent world/location...and it still show up in all worlds

so my question is....is it possible to disable the checkpoint only if im not in the same world/location as the checkpoint?

and is it possible to set max z and min z for cords?


thx~

Owen


Re: setting a checkpoint for a spicific interior? - [SF]OutLawZ - 20.06.2010

yer man im stuck with the same problem


Re: setting a checkpoint for a spicific interior? - DJDhan - 20.06.2010


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;
}



Re: setting a checkpoint for a spicific interior? - Owenlishious - 21.06.2010

thx mate ill try it


Re: setting a checkpoint for a spicific interior? - (SF)Noobanatior - 21.06.2010

then you will still see the checkpoint try checking there virtual world and interior b4 you update there visable cp and if its in a diff woorld or interior dont show it