28.10.2018, 02:40
How can I make a neon system for a private vehicle system? How to save and load neon.
Код:
case 1999: { if(!response) return 1; new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); switch(listitem) { case 0: { if(GetPlayerMoney(playerid) > 25000) { new INI:File = INI_Open(CarPath(playerid)); INI_SetTag(File, "CarData"); INI_WriteString(File, "Owner", Nick(playerid)); INI_WriteInt(File, "Vehicle ID", 541); INI_WriteInt(File, "Color 1", 1); INI_WriteInt(File, "Color 2", 1); INI_WriteFloat(File, "Position X", X); INI_WriteFloat(File, "Position Y", Y); INI_WriteFloat(File, "Position Z", Z); INI_WriteFloat(File, "Facing Angle", A); INI_Close(File); VehicleInfo[vid_][vID_vvv] = 541; VehicleInfo[vid_][vOwner] = Nick(playerid); VehicleInfo[vid_][vColor1] = 1; VehicleInfo[vid_][vColor2] = 1; VehicleInfo[vid_][vX] = X; VehicleInfo[vid_][vY] = Y; VehicleInfo[vid_][vZ] = Z; VehicleInfo[vid_][vA] = A; vid_++; new veh; veh = AddStaticVehicle(541, X, Y, Z, A, 1, 1); PutPlayerInVehicle(playerid, veh, 0); GivePlayerMoney(playerid, -25000); } else { SendClientMessage(playerid, 0, "You don't have enough cash to buy this car!"); } return 1; } } }