Gate System
#7

pawn Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/opengate", true) == 0)
  {
   if (gTeam[playerid] == TEAM_GROVE)
   {                                              
         if(PlayerToPoint(15.0, playerid,1706.4076,1607.4928,10.0097))
         {
       MoveObject(gate, 980, 1705.96, 1607.40, 12.06, 0.00, 0.00);
     return 1;
     }
  }
}

if(strcmp(cmdtext,"/closegate", true) == 0)
  {
   if (gTeam[playerid] == TEAM_GROVE)
   {
         if(PlayerToPoint(15.0, playerid,1706.4076,1607.4928,10.0097))  
         {
       MoveObject(gate, 980, 1705.96, 1607.40, 12.06, 0.00, 0.00);
     return 1;
     }
  }
}
return 1;
}
Reply


Messages In This Thread
Gate System - by Tuntun - 12.07.2012, 10:16
Re: Gate System - by RedJohn - 12.07.2012, 10:23
Re: Gate System - by clarencecuzz - 12.07.2012, 10:28
Re: Gate System - by Tuntun - 12.07.2012, 10:35
Re: Gate System - by clarencecuzz - 12.07.2012, 10:42
Re: Gate System - by Tuntun - 12.07.2012, 10:43
Re: Gate System - by clarencecuzz - 12.07.2012, 11:03
Re: Gate System - by Tuntun - 12.07.2012, 12:35
Re: Gate System - by clarencecuzz - 12.07.2012, 12:41
Re: Gate System - by Tuntun - 12.07.2012, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)