how to make /gate command like ...
#1

example:

i am at lspd interior and i have added an door object and i want to open it with /gate command, i know how to do this but i want to do like if your somewhere else and there is door to and you type /gate then that door opens


like when i do /gate in coords 0.0, 0.0, 0.0 then door opens and when i do that same command like 1.1, 1.1, 1.1 then door opens in 1.1, 1.1, 1.1 only



its like on LARP when you type /opengate in 1 place in ls it opens door and if you type the same gate then it opens the door your near
Reply
#2

Help anybody?
Reply
#3

Quote:

b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.

_________________________________________________
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#4

but how to i add like second case?

Код:
if(!strcmp("/stadium",cmdtext))
{
  if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
  {
  MoveObject( example i move door 1 in somewhere
  }
  if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
  {
  MoveObject( example i move door 2 in somewhere
  return 1;
}
how to add?

and i dont want to move both doors at the same time when player is in rangeofpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)