Vehicle spawn - 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: Vehicle spawn (
/showthread.php?tid=98658)
Vehicle spawn -
kilertas - 22.09.2009
Is there any way to spawn vehicle near the player?
P.S. I'm new here and at scripting
Re: Vehicle spawn -
Quest123 - 22.09.2009
You can download an admin script and look for a command e.g " /car [id] [color 1] [color 2] " or somethign like " /createcar [id] ect.. " im not sure how to do it without admin script, but in my opinion get an admin script i reccomend Ladmin, Search it up.
Hope it helps
Re: Vehicle spawn -
Abernethy - 22.09.2009
pawn Код:
if (strcmp("/BMXPL0X", cmdtext, true) == 0)
{
if (IsPlayerInAnyVehicle(playerid)
{
GameTextForPlayer(playerid, "~r~U IZ IN CARZ NUB!!1", 1000, 1);
}
else if (IsPlayerInAnyVehicle(playerid) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreateVehicle(481, X+3, Y+3, Z+5, 0.0, 600000);
GameTextForPlayer(playerid, "~P~DER! ~B~NOOBBBBB!!1", 1000, 1);
}
return true;
}
return false;
}
It took no effort, as you can see.
Re: Vehicle spawn -
kilertas - 23.09.2009
And where in .pwn paste the script? Mean what point "public OnGameModeInit" or where
Re: Vehicle spawn -
Blades - 23.09.2009
This is an FS for Vehicle Spawning.
http://forum.sa-mp.com/index.php?topic=76977.0
All you gotta do is place the .amx in your "filterscripts" folder, then click the lovely file in your root folder named "server.cfg".
Then in filterscripts you add the name of the vehicle spawner.
searching is such an awesome tool, you should use that, if you are too lazy to script.
Re: Vehicle spawn -
kilertas - 23.09.2009
Thanks