Help With Automatic Gates
#1

ok so i want it to open gates automaticly if anyone is near

i put this code on Ongamemodeinit but it dosent work why?

Код:
for(new i = 0; i < GetMaxPlayers(); i++)
  {
    if(PlayerToPoint(15.0, i, -205.532806, 989.914429, 18.148491))
	  {
    MoveObject(pdvartai, -205.532806, 989.914429, 18.148491, 2.5);
    SetTimer("PdVartaiUzdaryti", 10000, 0);
	  }
  }
Reply
#2

You need to set a timer to check the gate.

https://sampwiki.blast.hk/wiki/Automatic_Gates - this is a guide how to make automatic gates. There are some mistakes in that code, but if you have problems, post them here.
Reply
#3

i need a gate that closes after 3seconds or so... anyone example plz?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)