23.01.2017, 15:30
Hey, I'd like to make something like this
But for vehicles, a different file so I can save the owner.
There will be vehicles around the map and players will be able to enter them and buy them, is there any good tutorial that will teach me how to make a function like the one above? But for vehicles.
I made this so far
Код:
function LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Sex",PlayerInfo[playerid][pSex]); INI_Int("Age",PlayerInfo[playerid][pAge]); INI_Float("Pos_x",PlayerInfo[playerid][pPos_x]); INI_Float("Pos_y",PlayerInfo[playerid][pPos_y]); INI_Float("Pos_z",PlayerInfo[playerid][pPos_z]); INI_Int("Skin",PlayerInfo[playerid][pSkin]); INI_Int("Team",PlayerInfo[playerid][pTeam]); INI_Int("Accent",PlayerInfo[playerid][pAccent]); INI_Int("Account_Locked",PlayerInfo[playerid][pAccLock]); return 1; }
There will be vehicles around the map and players will be able to enter them and buy them, is there any good tutorial that will teach me how to make a function like the one above? But for vehicles.
I made this so far
Код:
enum vInfo { vOwner, vID, vPlate } new VehicleInfo[MAX_PLAYERS][vInfo];