08.01.2010, 16:45
Hi, I got this filterscript that makes a gate to move. All fine there.
But I cant get it to close automaticly after 5 segs. Somebody can help?
Thanks.
Quote:
#include <a_samp> new obj; public OnGameModeInit() { obj = CreateObject(971,1146.9829101563,-1385.0897216797,12.67054271698, 0.0, 0.0, 0.0); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/lsmd1", true) == 0) { new string[50]; new movetime = MoveObject(obj, 1154.3721923828, -1384.8677978516, 12.67054271698, 2.00); format(string, sizeof(string), "It will close in 5 seconds.", 500); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } |
Thanks.