Opening gates
#6

I tryed this one but won't work at all.

new obj1;
public OnFilterScriptInit()
{
obj1 = CreateObject(976, 2485.6479492188, 2350.5834960938, 9.8281135559082, 0, 0, 180); //barriere FBI Fermer
//fbi = CreateObject(969, 2477.1645507813, 2350.5571289063, 9.8203125, 0, 0, 0);// barriere fermйe
return 1;
}
public OnGameModeInit()
{
CreateObject(976, 2485.6479492188, 2350.5834960938, 9.8281135559082, 0, 0, 180); //barriere FBI Fermer
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opfbi", cmdtext, true)==0)
{
MoveObject(obj1,2477.6479492188, 2350.4584960938, 9.8281135559082, 6.5);
SetTimer("GateClose", 15000, 0);
SendClientMessage(playerid, COLOR_PURPLE,"FBI GATE OPENING - CLOSING IN 15 SECONDS");
return 1;
}
return 0;
}

public GateClose()
{
MoveObject (obj1,2485.6479492188, 2350.5834960938, 9.8281135559082, 3.5);
return 1;
}
Reply


Messages In This Thread
Opening gates - by Devil_ - 05.03.2011, 22:39
Re: Opening gates - by Amel_PAtomAXx - 05.03.2011, 23:06
Re : Opening gates - by Devil_ - 05.03.2011, 23:10
Re: Opening gates - by Loppa - 05.03.2011, 23:12
Re : Opening gates - by Devil_ - 05.03.2011, 23:23
Re : Opening gates - by Devil_ - 05.03.2011, 23:35
Re: Opening gates - by antonio112 - 05.03.2011, 23:44
Re : Opening gates - by Devil_ - 05.03.2011, 23:56
Re: Opening gates - by antonio112 - 05.03.2011, 23:59
Re : Opening gates - by Devil_ - 06.03.2011, 10:29

Forum Jump:


Users browsing this thread: 3 Guest(s)