Vehicle spawn
#1

Is there any way to spawn vehicle near the player?

P.S. I'm new here and at scripting
Reply
#2

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
Reply
#3

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

And where in .pwn paste the script? Mean what point "public OnGameModeInit" or where
Reply
#5

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

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)