SA-MP Forums Archive
[Help]Couple of questions - 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]Couple of questions (/showthread.php?tid=160100)



[Help]Couple of questions - Crashty - 15.07.2010

Hello

I'm scripting a gamemode and i want to know a couple of things about scripting it...

1. How do i make a car never spawn again after using "CreateVehicle" ?
Mine is like this: CreateVehicle(400, X-3, Y, Z, Angle, -1, -1, -1);
The last "-1" should make the vehicle never spawn again, but still it does.


2. How do i make the vehicle ID and it color depends on what the player will chose in game?
Ex. "/Cvehicle 500 1 1" This should spawn a jeep(I think) with the color white.
I can't just use OnPlayerCommandText .. /cvehicle 500 1 1 .. /cvehicle 501 1 1.. etc for all models and colors.


Please help a newbie, Thanks in advance

P.S: First post.


Re: [Help]Couple of questions - Crashty - 15.07.2010

Oh and my server IP is.. 127.0.0.1:7777 can players still see it in Internet servers or do i have to do something?


Re: [Help]Couple of questions - RyDeR` - 15.07.2010

1. Just do (999 * 999) as respawn time. I think no server will be on as long as that.

2. Download a filterscript from the Filterscript Category. There are a lot.