Vehicle 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: Vehicle spawn script. (
/showthread.php?tid=188893)
Vehicle spawn script. -
ThePwherer - 09.11.2010
I need a bit of help for a command such as:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/v (name)", cmdtext, true) == 0)
{
CreateVehicle(vehicletype, Float

, Float:y, Float:z, Float:rotation, color1, color2, respawn_time);
SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a (v name)!");
return 1;
}
so that it creates a vehicle right infront of the player. Can anyonne please help me?
im not realy shure if the command above is right...
Re: Vehicle spawn script. -
Brian_Furious - 09.11.2010
I think your using LARP
Re: Vehicle spawn script. -
Kwarde - 09.11.2010
Well, you can find in filterscripts etc, or search on ******: "SAMP Vehicle Spawner" OR
Use the include 'fsdebug' (idk how it's called. something like that) (the include is standard in SAMP)
In that FS you can use '/v [vehicle name]'

And btw, I've got a nice vehicle spawner script (xD) but it is more like "/vec [ID]" , not a name. For example, an NRG = "/vec 522" and an infernus "/vec 411"