17.09.2010, 17:11
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"
And this is what should this timer do.... But doesn't seems to work :S
And if is possible send a message to the player that gates have been closed...?
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;
}
pawn Код:
public pGateak()
{
SetObjectRot(pGate2, 0.00000000,0.00000000,268.00000000);
MoveObject(pGate3, 1595.74658203,-1638.20373535,14.15229225, 2.500000);
}