Object loader - 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: Object loader (
/showthread.php?tid=567377)
Object loader -
SoldierX - 13.03.2015
When a player goes through a interior, He usually falls cause the Interior is not loaded totally. It takes time. I was wondering if there is a script or FS which can fix that issue?
PS: I have 2% knowledge on Pawn and Could really use some explaination.
Re: Object loader -
ATGOggy - 13.03.2015
Just increase the Z co-ordinate. Means, increase the height of the player when he enters the interior.
Re: Object loader -
JaydenJason - 13.03.2015
Quote:
Originally Posted by SoldierX
When a player goes through a interior, He usually falls cause the Interior is not loaded totally. It takes time. I was wondering if there is a script or FS which can fix that issue?
PS: I have 2% knowledge on Pawn and Could really use some explaination.
|
Код:
// CMD:enter or w/e yours is
{
TogglePlayerControllable(playerid,0); // freezes you
SetTimerEx("AntiFall", 4000, false, "i", playerid); // timer that unfreezes you, code in it gets activated when timer ends, so after 4 seconds
}
Код:
forward AntiFall
public AntiFall
{
If(IsPlayerConnected(playerid));
{
TogglePlayerControllable(playerid,1);
return 1;
}
}
Hope you get the idea, and sorry for my mistakes if there are any, on the phone atm
Re: Object loader -
CalvinC - 13.03.2015
If you're using Incognito's streamer, with dynamic objects, there's a function to load the objects:
pawn Код:
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);
Do that before setting his position.
Freezing the player is a horrible way to do it.