[Help] Car spawn script
#1

Hi I just wanted to ask maybe someone knows a script that whenever u teleport to any zone like /drift and it would freeze player and say Loading Cars and then only Loadin Objects ,thx for any help. I ******d it ,searched it at forums and no results ,sad
Reply
#2

Create a timer,
Reply
#3

Im not a pro on scripting maybe u can show me script with that ?
Reply
#4

Maybe this could help,
https://sampforum.blast.hk/showthread.php?tid=191112
Reply
#5

im using it already, but i need one for cars because cars dont freeze they just fall in water :S
Reply
#6

On the teleport command, (assuming you have it)
Put at the top of your script
Код:
new Loadtimer;
then on the command.
Код:
TogglePlayerControllable(playerid, 0); 
SetTimer("LoadTimer", 6000, 1);
Then we create a new function, (outside of current functions.)

Код:
forward LoadTimer(playerid);
public LoadTimer(playerid)
{
TogglePlayerControllable(playerid, 1);
KillTimer("Loadtimer");
Reply
#7

wiki it?
Reply
#8

but it will only freeze the player and the cars will fall in water :/ i want to objects load first and THEN cars
Reply
#9

I solved the problem ,i just increased all car spawn z axis by 50 now whenever player teleports objects load first and cars fall from sky ;] And thnx for trying to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)