12.07.2012, 12:41
You added TEAM_GROVE, so it suggested you were going to use it only for TEAM_GROVE.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 15,1706.4076,1607.4928,10.0097))
{
MoveObject(gate, 1705.96, 1607.40, 12.06, 0.00, 0.00,0.00);
return 1;
}
}
if(strcmp(cmdtext,"/closegate", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 15,1706.4076,1607.4928,10.0097))
{
MoveObject(gate, 1705.96, 1607.40, 12.06, 0.00, 0.00, 0.00);
return 1;
}
}
return 1;
}