Need a Script
#6

Sorry about that. Here try this
pawn Код:
if(strcmp(cmdtext, "/togglegate", true) == 0)
{
   if(GateInfo == 0)// if the gate is closed
   {
      MoveObject(Gate, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ); // then move the gate here.
      GateInfo = 1; // gate is open
      new string[128];
      new playername[360];
      GetPlayerName(playerid,playername,sizeof(playername));
      format(string,sizeof(string),"%s Opened The Gate.",playername);
      SendClientMessageToAll(COLOR_WHITE,string);
   }
   else// else, if the gate is open
   {
      MoveObject(Gate, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ); // then move the gate here.
      GateInfo = 0; // gate is closed
      new string[128];
      new playername[360];
      GetPlayerName(playerid,playername,sizeof(playername));
      format(string,sizeof(string),"%s Closed The Gate.",playername);
      SendClientMessageToAll(COLOR_WHITE,string);
   }
return 1;
}
Reply


Messages In This Thread
Need a Script - by Allu - 24.06.2009, 20:39
Re: Need a Script - by NigNog1 - 24.06.2009, 20:46
Re: Need a Script - by Allu - 24.06.2009, 20:59
Re: Need a Script - by Stah - 24.06.2009, 21:08
Re: Need a Script - by Allu - 24.06.2009, 21:13
Re: Need a Script - by Stah - 24.06.2009, 22:22
Re: Need a Script - by Allu - 25.06.2009, 07:55
Re: Need a Script - by dice7 - 25.06.2009, 08:01
Re: Need a Script - by Abernethy - 25.06.2009, 08:02
Re: Need a Script - by Allu - 25.06.2009, 08:15

Forum Jump:


Users browsing this thread: 4 Guest(s)