Automatic gates question !
#1

How can i make my FS with automatic gates automaticly close after 3 seconds ? This is my pawno code :


Code:
#include <a_samp>
new gate;


#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
  gate = CreateObject(986,2560.146,-2227.251,13.071,0.0,0.0,90.000);
  return 1;
}

public OnPlayerCommandText (playerid, cmdtext[])
{
  if (strcmp(cmdtext, "/vipopen", true) == 0)
  {
    MoveObject(gate, 2560.146,-2235.245,13.071,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Welcome to V.I.P base.");
    return 1;
  }
  if (strcmp(cmdtext, "/vipclose", true) == 0)
  {
    MoveObject(gate, 2560.146,-2227.251,13.071,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Come back later.");
    return 1;
  }
  return 0; 
}
Reply


Messages In This Thread
Automatic gates question ! - by Kirchhoff - 25.03.2010, 19:38
Re: Automatic gates question ! - by cssbart - 25.03.2010, 21:34
Re: Automatic gates question ! - by Kirchhoff - 26.03.2010, 07:59
Re: Automatic gates question ! - by [cA]Unforseen - 26.03.2010, 08:01
Re: Automatic gates question ! - by Kirchhoff - 26.03.2010, 08:03
Re: Automatic gates question ! - by [cA]Unforseen - 26.03.2010, 08:08
Re: Automatic gates question ! - by Kirchhoff - 26.03.2010, 08:42
Re: Automatic gates question ! - by jamesbond007 - 26.03.2010, 09:45
Re: Automatic gates question ! - by Oxside - 26.03.2010, 09:51
Re: Automatic gates question ! - by [MK]Soprano - 26.03.2010, 10:35

Forum Jump:


Users browsing this thread: 2 Guest(s)