SA-MP Forums Archive
Checkpoint can use cops only! 2nd question.. - 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: Checkpoint can use cops only! 2nd question.. (/showthread.php?tid=72874)



Checkpoint can use cops only! 2nd question.. - krisis32 - 11.04.2009

i created a checkpoint! I want the that checkpoint only see cops! Or only can use cops! How to do it?

2nd question..

why this dont work?

ther is

new durvisciet;
durvisciet = CreateObject(985,239.597549,114.870544,1003.225708 ,0.000000,0.000000,91.564590);//durivs1 ciet

pawn Код:
if(strcmp(cmd, "/opd", true) == 0)
  {
  MoveObject(durvisciet,239.621200,110.281173,1003.218750,2.00);
  return 1;
  }
 
if(strcmp(cmd, "/cpd", true) == 0)
  {
  MoveObject(durvisciet,239.597549,114.870544,1003.225708,2.00);
  return 1;
  }
------------------------------------------------------------------------
SLOVED

pawn Код:
if(strcmp(cmdtext, "/opd", true) == 0)
  {
  MoveObject(durvisciet,239.621200,110.281173,1003.218750,2.00);
  return 1;
  }
 
if(strcmp(cmdtext, "/cpd", true) == 0)
  {
  MoveObject(durvisciet,239.597549,114.870544,1003.225708,2.00);
  return 1;
  }



Re: Checkpoint can use cops only! 2nd question.. - MenaceX^ - 11.04.2009

Check if you move the object correctly when you try to close it.


Re: Checkpoint can use cops only! 2nd question.. - krisis32 - 11.04.2009

it is corretcly... i did put the

durvisciet = CreateObject(......)
i did use thous cords!


Re: Checkpoint can use cops only! 2nd question.. - krisis32 - 11.04.2009

I did try pressing - some other cmd like /oc and the doors did opened!
Any suggestions... ?