[Help] Gate
#1

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.
Reply
#2

Maybe you could use a timer, I have no idea how it works tough. But I am curious tough.
Reply
#3

Learn how to use timers, go and look on the wiki, it's well explained.
Reply
#4

Nice, will have a look there.
Reply
#5

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.
Reply
#6

SetTimer / SetTimerEx
Reply
#7

Maybe this will help?
https://sampwiki.blast.hk/wiki/Automatic_Gates
Reply
#8

Cant make it work, anything else?
Reply
#9

Please help me!
Reply
#10

Sorry for triple post but please, I cant get it woek :S PLEASE!
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)