SA-MP Forums Archive
[HELP] Objects loading - 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: [HELP] Objects loading (/showthread.php?tid=307607)



[HELP] Objects loading - V4at - 31.12.2011

What would you recommend for the player from falling objects when not loading? example: That the player would be supported in the air.


Re : [HELP] Objects loading - V4at - 31.12.2011

What should I do when a player does not start falling objects?


Re: [HELP] Objects loading - Norck - 31.12.2011

Do you mean that players are falling through the objects that have not been loaded in time?
If so, then try to freeze players for some time using TogglePlayerControlable


Re : [HELP] Objects loading - V4at - 31.12.2011

Yes, I mean it. How do I use it? please script.


Re: [HELP] Objects loading - dr.pepper - 31.12.2011

On a teleport like say like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/teleport", cmdtext, true, 10) == 0) // Commannd
    {
        TogglePlayerControllable(playerid,0); // Freeze the player
        SetTimerEx("Freeze", 4000, false, "i", playerid); // Timer for 4 seconds (not repeating timer, only called on the command)
        return 1;
    }
    return 0;
}

forward Freeze(playerid); // forward
public Freeze(playerid) { // callback
    TogglePlayerControllable(playerid,1); // after 4 seconds, player is unfrozen
    return 1;
}



Re : [HELP] Objects loading - V4at - 31.12.2011

Thanks man!