[Help] Gate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Gate (
/showthread.php?tid=119567)
[Help] Gate -
Fedee! - 08.01.2010
Hi, I got this filterscript that makes a gate to move. All fine there.
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;
}
|
But I cant get it to close automaticly after 5 segs. Somebody can help?
Thanks.
Re: [Help] Gate -
waza75 - 08.01.2010
Maybe you could use a timer, I have no idea how it works tough. But I am curious tough.
Re: [Help] Gate -
Correlli - 08.01.2010
Learn how to use timers, go and look on the wiki, it's well explained.
Re: [Help] Gate -
waza75 - 08.01.2010
Nice, will have a look there.
Re: [Help] Gate -
Fedee! - 08.01.2010
Quote:
Originally Posted by Don Correlli
Learn how to use timers, go and look on the wiki, it's well explained.
|
SetTimer That one?
Thanks.
Re: [Help] Gate -
Correlli - 08.01.2010
SetTimer /
SetTimerEx
Re: [Help] Gate -
Rensieboy14 - 08.01.2010
Maybe this will help?
https://sampwiki.blast.hk/wiki/Automatic_Gates
Re: [Help] Gate -
Fedee! - 08.01.2010
Cant make it work, anything else?
Re: [Help] Gate -
Fedee! - 08.01.2010
Please help me!
Re: [Help] Gate -
Fedee! - 09.01.2010
Sorry for triple post but please, I cant get it woek :S PLEASE!