[Help]Auto Gates
#1

Hello,
How can i make gates when someone open them....they will open and close after some time...

Heres what I have...

This Is For "/Opengate"
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,1582.62548828,-1638.09887695,12.37568665))
            {
       SetObjectRot(pGate2, 0.00000000,0.00000000,268.00000000);
       MoveObject(pGate3, 1595.74658203,-1638.20373535,14.15229225, 2.500000);
       SendClientMessage(playerid, COLOR_BLUE," You opened the gates of the Police Department. They will close automatically after 7 secunds.");
       SetTimer("pGateak", 7000, 1);
     return 1;
            }
And this is what should this timer do.... But doesn't seems to work :S
pawn Код:
public pGateak()
{
    SetObjectRot(pGate2, 0.00000000,0.00000000,268.00000000);
    MoveObject(pGate3, 1595.74658203,-1638.20373535,14.15229225, 2.500000);
}
And if is possible send a message to the player that gates have been closed...?
Reply


Messages In This Thread
[Help]Auto Gates - by Alex_Valde - 17.09.2010, 17:11
Re: [Help]Auto Gates - by Thebest96 - 17.09.2010, 17:15
Re: [Help]Auto Gates - by Alex_Valde - 17.09.2010, 17:22
Re: [Help]Auto Gates - by Cameltoe - 17.09.2010, 17:29
Re: [Help]Auto Gates - by Alex_Valde - 17.09.2010, 17:37
Re: [Help]Auto Gates - by Cameltoe - 17.09.2010, 17:42
Re: [Help]Auto Gates - by Alex_Valde - 17.09.2010, 17:45
Re: [Help]Auto Gates - by Cameltoe - 17.09.2010, 17:49
Re: [Help]Auto Gates - by Alex_Valde - 17.09.2010, 17:54
Re: [Help]Auto Gates - by Cameltoe - 17.09.2010, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)