19.06.2009, 14:04
Hey
I need a gate that when you open it, that it closed automatic after 3 sec
here is what I already got:
OnPlayerCommandText
This works, It closes and opens normal, but now I try to upgrade it so that it closes automatic after 3 sec.
Thanks
I need a gate that when you open it, that it closed automatic after 3 sec
here is what I already got:
OnPlayerCommandText
Код:
if(strcmp("/aopen", cmdtext, true, 7) == 0) { MoveObject(agate,321.292,-1188.194,71.049,5.0); SendClientMessage(playerid, 0xAA3333AA, "Close the gate by typing: '/aclose' or by waiting 3 sec."); return 1; } if(strcmp("/aclose", cmdtext, true, 8) == 0) { MoveObject(agate,321.292,-1188.194,78.049,5.0); SendClientMessage(playerid, 0xAA3333AA, "You have closed the gate"); return 1; }
Thanks