#7

Quote:
Originally Posted by Dw.UsHer
Посмотреть сообщение
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
Instead of (gTeam) why not using names?

Like if his name is "John_Smith" then he can open the gates.
Reply


Messages In This Thread
gate - by Dw.UsHer - 01.03.2012, 18:49
Re: gate - by Dw.UsHer - 01.03.2012, 18:54
Re: gate - by milanosie - 01.03.2012, 18:58
Re: gate - by niels44 - 01.03.2012, 19:00
Re: gate - by Dw.UsHer - 01.03.2012, 19:02
Re: gate - by Dw.UsHer - 01.03.2012, 19:05
Re: gate - by Ubuntu - 01.03.2012, 19:40

Forum Jump:


Users browsing this thread: 6 Guest(s)