setting a checkpoint for a spicific interior?
#1

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

yer man im stuck with the same problem
Reply
#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
#4

thx mate ill try it
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)