Need help...
#1

Hello all.. I have RolePlay GM. When I restart my server all cars appears in it's spawn places. What should I do that cars stay in the same place like before restart? Sorry for my bad english
Reply
#2

You should get vehicle's position and store it in a file.
https://sampwiki.blast.hk/wiki/GetVehiclePos
Once the gamemode starts, make it so it will read from vehicle's file and set vehicle's position.
https://sampwiki.blast.hk/wiki/SetVehiclePos
Reply
#3

Quote:
Originally Posted by Don Correlli
Which gamemode are you using?
I think in this forum isn't that GM. Here the link http://www.failai.lt/y2i6wf2jbj77/GRP4.rar.htm
Reply
#4

It's not that important, i edited my post before you posted. Read it.
Reply
#5

So.. Below public OnGameModeExit() I should create file and get vehicle's pos and below public OnGameModeInit() I should make it read from that file? If yes, where to create that file? In scriptfiles folder?
EDIT:
I need to use include like dini?
Reply
#6

Sorry for double posting.. Can anyone answer to my question?
Reply
#7

The file will be automatically created in folder called scriptfiles.
You can use file functions -> https://sampwiki.blast.hk/wiki/File_Functions
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)