Object Loading
#1

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

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

I try This, now the object is loaded, but car fall in the sea, How can I respawn that car?
Reply
#4

Make the timer higher, maybie it will not fall down
Reply
#5

I try, but when the timer is goning, the car fall down and it isnt freezed. Can I respawn that in Right Place?
Reply
#6

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

oh really you can use object streamer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)