[HELP] Objects loading
#1

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

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

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
Reply
#4

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

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;
}
Reply
#6

Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)