how to make /gate command like ... - 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: how to make /gate command like ... (
/showthread.php?tid=144458)
how to make /gate command like ... -
hardstop - 27.04.2010
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
Re: how to make /gate command like ... -
hardstop - 27.04.2010
Help anybody?
Re: how to make /gate command like ... -
RyDeR` - 27.04.2010
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
Re: how to make /gate command like ... -
hardstop - 27.04.2010
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