Help me shop buy/sell/delete vehicle
#1

I want buy vehicle when player Enter and player is PLAYER_STATE_DRIVER.

when they sit on the car and are willing to pay, there will be 1 car created just outside the door and it is their car. it will live forever on the same system as I have created.
Reply
#2

OnPlayerEnterVehicle > !ispassenger > showdialog with price > buy the car > create cars for player x+3 from his current pos, also save the data.
Reply
#3

can you show me script?
Reply
#4

Are you using any saving system?like mysql,yini etc?
Reply
#5

Quote:
Originally Posted by mirou123
Посмотреть сообщение
Are you using any saving system?like mysql,yini etc?
i have use dini
Reply
#6

Okay so you probably have something like

Код:
enum pInfo
{
Money,
Level,
//Etc...
//Add this
pVehicle;
}

enum vinfo
{
vPosX,
vPosY,
vPosY,
vAngle,
vColor,
vModel
//etc....
}
and when you create the car Do something like GetPlayerPos(playerid, vPosx,vPosY,vPosZ);
That will save the position
Then save the model in vModel
Then you can save the vehicle into the player's file.And each time they login load the car.
Reply
#7

help me full script
Reply
#8

I can't do that.I don't know what variables are you using and it's a long code.Try to find a filterscript or follow some tutorials
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)