SA-MP Forums Archive
Rope sliding, can it cause lag? (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: Rope sliding, can it cause lag? (Timer) (/showthread.php?tid=455831)



Rope sliding, can it cause lag? (Timer) - Facerafter - 03.08.2013

I had the idea to create a rope to slide down.

pawn Код:
public Slide(playerid)
{
    if(Sliding[playerid] == 1)
    {
    new Float:X;
    new Float:Y;
    new Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z - 2.00);
    SetTimerEx("Slide", 300, 0, "i", playerid);
    }
        return 1;
}
Came up with something like this.
Will this cause lagg with the timer?


Re: Rope sliding, can it cause lag? (Timer) - BigGroter - 03.08.2013

Try.


Re: Rope sliding, can it cause lag? (Timer) - Edix - 03.08.2013

Why you start a timer inside the timer?
You can just make it repeat and stop after x times it repeats.

It shouldnt cause lag as far as I see.