02.09.2009, 05:35
Okay i;ve look in the Search, i've looked at the auto gate topic on wiki.. and yet it still does not make sence to me, so can sum one please help me..
here my code to open the gate.. i need sum one to tell me how to set it up so after 5 seconds it will auto close....
here my code to open the gate.. i need sum one to tell me how to set it up so after 5 seconds it will auto close....
Код:
if (strcmp("/hqopen", cmdtext, true, 10) == 0) // OPENS GATE { if (PlayerToPoint(20.00, playerid, 785.547, -1152.5, 25.3229)) { MoveObject(gate1,785.547, -1152.5, 31.1229, 2.0); SendClientMessage(playerid, 0xFFFFFFAA, "Tea House Gate Is Now Opening"); } else { SendClientMessage(playerid, 0xf01818FF, "Sorry, To Far Away To Open Tea House Gate"); } return 1; }