Loading cars on island
#1

Hi guys,

Im sitting with a problem over here. I spawn some cars at an island I made by myself. When people spawn there all the trucks ar spawned underneath the ground...

I think I need this but dont know how to make: You respawn, you wat 3 secs to load the objects, then you can move. I think that is to fix the prob?

I dont know how to make it and if it is right^?

Leave your comment's how to resolve this...

Thanks

Jer
Reply
#2

Make a timer for freezing the player

I will make a simple one for you.

under Main() { }

pawn Код:
forward Timer(playerid);
public Timer(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, -1, "You are frozen for 5 seconds to load objects.");
SetTimerEx("Timer",5000/*5 seconds in milliseconds*/, false/*no repeating of the timer*/, "i", playerid);
TogglePlayerControllable(playerid, 0);
return 1;
}
Reply
#3

Quote:
Originally Posted by L.Hudson
Посмотреть сообщение
Make a timer for freezing the player

I will make a simple one for you.

under Main() { }

pawn Код:
forward Timer(playerid);
public Timer(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, -1, "You are frozen for 5 seconds to load objects.");
SetTimerEx("Timer",5000/*5 seconds in milliseconds*/, false/*no repeating of the timer*/, "i", playerid);
TogglePlayerControllable(playerid, 0);
return 1;
}
That won't fix the problem, because the vehicles will go underground with your code too. It just freezes the player to give loading time to the objetcs, the result? Player won't fall underground, but vehicles yes.
_________________________
Now, I think there isn't any fix for that. To "freeze" the vehicles, that happened to me too in my free roam.
Reply
#4

I missread, I thought it wanted just the player
Reply
#5

So how to fix this prob?

EDIT: the problem is not fixed with your script you gave L.Hudson
Reply
#6

Anyone who can help me with this problem? Cause I need to fix it...
Reply
#7

Did you try to lift the vehicle cor becose as i see vehicles are stuck on map
Reply
#8

Well when i mapping an island or something like that with vehicle.
I always put them on 10 feet high (i don't know) then i freeze players.
So when the vehicle land on the ground it won't stuck under on it.

Well hope it works (or maybe not?) this is crazy little trick.
Reply
#9

Well I put the vehicles a bit higher on the air, so maybe I have to put them some more higher, going to try it, thanks
Reply
#10

Thank you for trying my crazy little trick lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)