SA-MP Forums Archive
Timer. - 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)
+--- Thread: Timer. (/showthread.php?tid=591336)



Timer. - norton2 - 10.10.2015

Object don't moved. If use "SetTimer" object has moved.

Код HTML:
if(IsPlayerInRangeOfPoint(i, 14.0, 1810.02307, -1893.16748, 13.21320))
{
    SetTimer_("barrierspawn", 100, 3000, 0);
}
Код HTML:
forward barrierspawn();
public barrierspawn()
{
    MoveObject(bspawn, 1810.02307, -1893.16748, 13.21320, 0.05, 0, 90, 90);
    return 1;
}



Re: Timer. - Dusan01 - 11.10.2015

can u expalne little bit more? cuz i dont get it


Re: Timer. - Unte99 - 11.10.2015

You should not use local functions for gates. Local functions should only be used only when necessary.

Код:
if(IsPlayerInRangeOfPoint(i, 14.0, 1810.02307, -1893.16748, 13.21320))
{
    MoveObject(bspawn, 1810.02307, -1893.16748, 13.21320, 0.05, 0, 90, 90);
}