Vehicle spawn script.
#1

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...
Reply
#2

I think your using LARP
Reply
#3

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"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)