[HELP] With gate ?
#1

I know to create a gate to can open all with command but i want to create a gate who will can open only by police
i copy this from script and i need help. And i want to put this in FilterScript.


Cordinates:


CreateObject(980,719.97039795,-1415.19812012,15.30977249,0.00000000,0.00000000,0. 00000000); //Door OPEN
CreateObject(980,707.49176025,-1415.93664551,15.30977249,0.00000000,0.00000000,0. 00000000); //Door CLOSE

So where i need to put this cordinates?
Please help!

Код:
if(!strcmp(cmdtext, "/vo", true))
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
    {
        if (PlayerToPoint(15, playerid,245.0578,72.4314,1002.5406))
		{
      		MoveObject(pdbrod, 244.0578,72.4314,1002.5406, 3.5);
      		SetTimer("GateClose15", 12000, 0);
      		SendClientMessage(playerid, COLOR_BLUE,"Vratata e otvorena i se zatvara za 7 sekundi.");
      		GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s ja otvori vratata na PD.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	    }
	    else { SendClientMessage(playerid, COLOR_GREY,"Ne si blizu do vratata."); }
	}
 	else return SendClientMessage(playerid, COLOR_GREY,"Nemas prava.");
    return 1;
}
Код:
public GateClose15(playerid)
{
      MoveObject(pdbrod, 719.97039795,-1415.19812012,15.30977249, 3.5);
      return 1;
}
Reply


Messages In This Thread
[HELP] With gate ? - by GBLTeam - 03.09.2010, 15:14
Re: [HELP] With gate ? - by CyNiC - 03.09.2010, 15:39
Re: [HELP] With gate ? - by GBLTeam - 03.09.2010, 15:43
Re: [HELP] With gate ? - by CyNiC - 03.09.2010, 15:58
Re: [HELP] With gate ? - by GBLTeam - 03.09.2010, 16:02
Re: [HELP] With gate ? - by CyNiC - 03.09.2010, 16:06
Re: [HELP] With gate ? - by GBLTeam - 03.09.2010, 16:22
Re: [HELP] With gate ? - by GBLTeam - 03.09.2010, 17:39
Re: [HELP] With gate ? - by CyNiC - 03.09.2010, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)