Help me about gate commands
#8

Top of script:
pawn Код:
new gate;
OnGameModeInit:
pawn Код:
gate = CreateObject(980, 1263.889526, -2045.712280, 61.069244, 0.0000, 0.0000, 0.0000);
OnPlayerCommandText:
pawn Код:
if(strcmp(cmdtext, "/open", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid,10.0,1263.889526, -2045.712280, 61.069244))
  {
    MoveObject(gate,1275.430176, -2045.808960, 61.140751,2.0);
  }
  return 1;
}

if(strcmp(cmdtext, "/close", true) == 0)
{
  if(IsPlayerInRangeOfPoint(playerid,10.0,1263.889526, -2045.712280, 61.069244))
  {
    MoveObject(gate,1263.889526, -2045.712280, 61.069244,2.0);
  }
  return 1;
}
Reply


Messages In This Thread
Help me about gate commands - by KfirRP - 04.06.2010, 12:42
Re: Help me about gate commands - by Jakku - 04.06.2010, 12:50
Re: Help me about gate commands - by KfirRP - 04.06.2010, 12:56
Re: Help me about gate commands - by MadeMan - 04.06.2010, 13:24
Re: Help me about gate commands - by KfirRP - 04.06.2010, 13:26
Re: Help me about gate commands - by MadeMan - 04.06.2010, 13:36
Re: Help me about gate commands - by KfirRP - 04.06.2010, 13:36
Re: Help me about gate commands - by MadeMan - 04.06.2010, 13:55
Re: Help me about gate commands - by KfirRP - 04.06.2010, 13:56
Re: Help me about gate commands - by KfirRP - 04.06.2010, 14:05
Re: Help me about gate commands - by MadeMan - 04.06.2010, 14:10
Re: Help me about gate commands - by KfirRP - 04.06.2010, 14:13
Re: Help me about gate commands - by playbox12 - 04.06.2010, 14:34
Re: Help me about gate commands - by KfirRP - 04.06.2010, 14:48

Forum Jump:


Users browsing this thread: 2 Guest(s)