Object 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Object Loading (
/showthread.php?tid=79859)
Object Loading -
DiEx - 31.05.2009
Hi, I created a BigRamp, but when someone type the command the object isn't loaded in time and he fall in the sea. I would like to create A timer and when someone type the command for the teleport is freeze for 5 seconds while the object load, and then is unfreezed. Can someone help me? The coordinate are 2926.8699, -1677.2444, 873.7387
Re: Object Loading -
RenisiL - 31.05.2009
Quote:
forward funkcion
forward DynUpdateStart(playerid);
forward DynUpdateEnd(playerid);
public DynUpdateStart(playerid)
{
TogglePlayerControllable(playerid, false);
new string[255];
format(string, sizeof(string), "~g~Objects~n~~r~Loading");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetTimerEx("DynUpdateEnd", 10000, 0,"e",playerid);
return 1;
}
public DynUpdateEnd(playerid)
{
TogglePlayerControllable(playerid, true);
new string[255];
format(string, sizeof(string), "~g~Objects~n~~r~Loaded!");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
return 1;
}
added teleport
DynUpdateStart(playerid);
|
sorry I bad speak ENG
Re: Object Loading -
DiEx - 31.05.2009
I try This, now the object is loaded, but car fall in the sea, How can I respawn that car?
Re: Object Loading -
RenisiL - 31.05.2009
Make the timer higher, maybie it will not fall down
Re: Object Loading -
DiEx - 31.05.2009
I try, but when the timer is goning, the car fall down and it isnt freezed. Can I respawn that in Right Place?
Re: Object Loading -
mannu - 31.05.2009
if you are using some object streamer
then use CreateObject(--------------);//for the object on which player spawn
instead of CreateStreamedObject(-------); or w/e
and use CreateObject(--------------); in Main gamemode script
Re: Object Loading -
RenisiL - 31.05.2009
oh really you can use object streamer