SA-MP Forums Archive
[Help] Car spawn script - 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: [Help] Car spawn script (/showthread.php?tid=191424)



[Help] Car spawn script - AntanazC - 19.11.2010

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


Re: [Help] Car spawn script - -Rebel Son- - 19.11.2010

Create a timer,


Re: [Help] Car spawn script - AntanazC - 19.11.2010

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


Re: [Help] Car spawn script - morris91 - 19.11.2010

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


Re: [Help] Car spawn script - AntanazC - 19.11.2010

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


Re: [Help] Car spawn script - -Rebel Son- - 19.11.2010

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");



Re: [Help] Car spawn script - dark_clown - 19.11.2010

wiki it?


Re: [Help] Car spawn script - AntanazC - 19.11.2010

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


Re: [Help] Car spawn script - AntanazC - 19.11.2010

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