14.01.2011, 13:29
pawn Код:
if(!strcmp(cmdtext, "/gate1", true))//open
{
if(PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pMember] >= 1)
{
if(IsPlayerInRangeOfPoint(playerid, 15, 1588.06298828,-1638.16271973,7.16996956)) MoveObject(pdgate, 1588.06298828,-1638.16271973,7.16996956, 3);
return 1;
}
}
if(!strcmp(cmdtext, "/gate2", true))//close
{
if(PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pMember] >= 1)
{
if(IsPlayerInRangeOfPoint(playerid, 15, 1588.06298828,-1638.16271973,15.16996956)) MoveObject(pdgate, 1588.06298828,-1638.16271973,15.16996956, 3);
return 1;
}
}