Moving gates problem 3 !
#1

Hi i want to make that only the cops team can open LSPD gates this is my filter script :
The guy who wants to open the gate must have rank 1 . So i want to make the gates that it will only open if you have rank 1


P.S : oh and another problem ! The //lspd objects spawn imediatly i mean if you hit that object there are many more of them in the same place , so you can destroy the fence because there are 100 or more in the same place . How to fix that please help !


Код:
#include <a_samp>
#pragma tabsize 0
new lpgate;

#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
  lpgate = CreateObject(975,1548.571,-1627.423,14.058,0.0,0.0,90.000);
  return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
  if (strcmp(cmdtext, "/lspdopen", true) == 0)
  {
    MoveObject(lpgate, 1548.571,-1634.002,14.058,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD!");
    return 1;
  }
  if (strcmp(cmdtext, "/lspdclose", true) == 0)
  {
    MoveObject(lpgate, 1548.571,-1627.423,14.058,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Come back later.");
    return 1;
}  
  
//LSPD Base
CreateObject(1411,1548.751,-1620.444,14.156,0.0,0.0,-90.000);
CreateObject(1411,1548.879,-1634.387,13.992,0.0,0.0,-90.000);

return 0;
}
Reply


Messages In This Thread
Moving gates problem 3 ! - by Kirchhoff - 06.04.2010, 08:23
Re: Moving gates problem 3 ! - by Last_Stand_Guardian - 06.04.2010, 09:08
Re: Moving gates problem 3 ! - by Kirchhoff - 06.04.2010, 09:10
Re: Moving gates problem 3 ! - by Last_Stand_Guardian - 06.04.2010, 09:23
Re: Moving gates problem 3 ! - by Kirchhoff - 06.04.2010, 09:41
Re: Moving gates problem 3 ! - by Kirchhoff - 06.04.2010, 09:43
Re: Moving gates problem 3 ! - by Joe_ - 06.04.2010, 10:00
Re: Moving gates problem 3 ! - by Kirchhoff - 06.04.2010, 10:17
Re: Moving gates problem 3 ! - by Joe_ - 06.04.2010, 10:39
Re: Moving gates problem 3 ! - by Kirchhoff - 07.04.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)