Scripting Help
#1

I want to add vehicles for my DM Zone called (War)

So i added AddStaticVehicle and their parameters and compiled without any error!, When i restarted the server the vehicles are not saved!?

Help
Reply
#2

It depends on the Virtual Worlds, Maybe you didn't put the in the right place.
Reply
#3

No, I'm in the vehicle and typed, /save and opened savedpositions.txt in the gta sanandreas documents.
The other places with vehicles working.!
Reply
#4

Anyone help me! :/
Reply
#5

Reply
#6

Did you put the vehicles in your script?
Reply
#7

Yes.
Reply
#8

Then it's a weird problem
Reply
#9

Yess!!, Do you have any another way to save vehicles!!?
Reply
#10

Hello,

Try this Tutorial

Tutorial:

At top of the script:
Code:
#include blahblahblah whatever
Add this "new carname; ( name it as you want )"

Go to the vehicle lines and add this:

Code:
carname = AddStaticVehicle(blah,blah,blah);
And go to the war command and see its virtual world e.g: My /war is at virtual world 88888

I do this:

Code:
CMD:war(playerid, params[])
{
   SetPlayerPos(playerid,2490.4089,-1662.9949,13.3359);
   SetPlayerVirtualWorld(playerid, 88888);
   GameTextForPlayer(playerid, "~g~Welcome ~y~To ~r~War", 2000, 5);
   return 1;
}
Now that's the tricky part:
Add
Code:
SetVehicleVirtualWorld(carname, 88888);
to the command FOR EACH VEHICLE.

And we're done, compile the script and try

++REP if works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)