/gateopen PD only
#1

Quote:

#include <a_samp>
new Gate;

public OnFilterScriptInit()
{
Gate = CreateObject(968, 1540.13, -1611.08, 12.94, 0.0, 88.42, 90.00, 100.0);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/gateopen", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1540.13, -1611.08, 12.94)){
SetTimerEx("CloseGate", 7000, false, "i", playerid);
MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00);
return 1;
}
}
return 0;
}

forward CloseGate(playerid);
public CloseGate(playerid)
{
MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 88.42, 90.00);
}

I want that door can open only PD
Reply


Messages In This Thread
/gateopen PD only - by Andrei0427 - 28.12.2012, 16:11
Re: /gateopen PD only - by Magic_Time - 28.12.2012, 16:18
Re: /gateopen PD only - by Andrei0427 - 28.12.2012, 16:27
Re: /gateopen PD only - by Diorturato - 28.12.2012, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)