01.03.2012, 19:05
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000);
return 1;
}
}
}
if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000);
return 1;
}
}
}
here and how to make a boss that only one player that you can open the gate
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000);
return 1;
}
}
}
if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000);
return 1;
}
}
}
here and how to make a boss that only one player that you can open the gate